Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re (PotPieMan): Can I use a regex here?

by PotPieMan (Hermit)
on Apr 17, 2001 at 01:29 UTC ( #72961=note: print w/replies, xml ) Need Help??


in reply to Can I use a regex here?

While Masem's suggestion should work, you could do it more simply with loop. For example:
for my $number (1 .. $END) { my $logFile = 'pair' . $number . $RUN_NAME . '.log'; rename $logFile, "$OUT_DIR/allfiles/$logFile"; }

(You could skip the "my $number" for idiomatic purposes and use $_ instead.)

--PotPieMan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://72961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-04-17 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?