Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by PotPieMan (Hermit)
on Apr 17, 2001 at 01:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://72961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found