in reply to Can I use a regex here?
@old_log_files = [ $LOG_FILE_1, $LOG_FILE_2, ...]; @new_log_files = map { "$OUT_DIR/allfiles/$_" } @old_log_files; for (i=0;$i<scalar @old_log_files; $i++) { rename $old_log_files[$i], $new_log_files[$i]; }
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) 2Re: Can I use a regex here?
by jeffa (Bishop) on Apr 17, 2001 at 01:30 UTC |