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
In reply to Re (PotPieMan): Can I use a regex here?
by PotPieMan
in thread Can I use a regex here?
by mndoci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |