base_16 has asked for the wisdom of the Perl Monks concerning the following question:
$DIR="."; opendir CONCEPT, $DIR || die "no such dir"; while ($TEMP = readdir(CONCEPT)) { $TEMP1 = $TEMP; if ($TEMP1 =~ /(A-[0-9]+-[0-9]+)/) { if (rename $TEMP, $TEMP1) { print $TEMP1; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: renaming files...
by lhoward (Vicar) on Aug 08, 2000 at 22:04 UTC | |
|
Re: renaming files...
by plaid (Chaplain) on Aug 08, 2000 at 22:06 UTC | |
|
RE: renaming files...
by steveAZ98 (Monk) on Aug 09, 2000 at 00:59 UTC | |
|
Re: renaming files...
by ar0n (Priest) on Aug 08, 2000 at 22:01 UTC | |
by tye (Sage) on Aug 08, 2000 at 22:10 UTC |