Thread kleines zipping-prog: files zippen (8 answers)
Opened by Duff at 2006-12-09 16:19

renee
 2006-12-09 19:37
#72445 #72445
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my $file = 'gezippte_datei_Datum_#3.log';
my ($nr) = $file =~ m!#(\d+)\.log!;

while(1){
unless(-e $file){
last;
}
else{
++$nr;
my $file = 'gezippte_Datei_Datum#'.$nr.'.log';
}
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread kleines zipping-prog: files zippen