williamp has asked for the wisdom of the Perl Monks concerning the following question:
my @files=`ls AFILE_*zip BFILE_*zip `; foreach my $zipfile (@files) { my $day = undef; $zipfile =~ m/AFILE_(\d+)/; $zipfile =~ m/BFILE_(\d+)/; $day = $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A better regex
by mildside (Friar) on Sep 24, 2003 at 01:35 UTC | |
by tstock (Curate) on Sep 24, 2003 at 03:26 UTC | |
|
Re: A better regex
by kvale (Monsignor) on Sep 24, 2003 at 00:30 UTC | |
|
Re: A better regex
by thens (Scribe) on Sep 24, 2003 at 08:36 UTC | |
|
Re: A better regex
by Roger (Parson) on Sep 24, 2003 at 00:59 UTC | |
|
Re: A better regex
by Abigail-II (Bishop) on Sep 24, 2003 at 08:24 UTC | |
|
Re: A better regex
by injunjoel (Priest) on Sep 24, 2003 at 00:32 UTC | |
by Anonymous Monk on Sep 24, 2003 at 00:52 UTC | |
|
Re: A better regex
by chanio (Priest) on Sep 25, 2003 at 05:08 UTC |