in reply to Re: Find a list of numbered files with same basename
in thread Find a list of numbered files with same basename
for instance, would find all files that ended with a double digit number.my $pattern = "*.[0-9][0-9]"; my @file_names = glob $pattern;
To bad the glob format isn't quite as nice as the full regular expression engine, I'd have liked to be able to do \d+, but without further complicating this, we can't.
-Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Find a list of numbered files with same basename
by mnlight (Scribe) on Apr 22, 2005 at 19:51 UTC | |
by salva (Canon) on Apr 23, 2005 at 10:16 UTC |