in reply to Creating Filenames using variables
This executes the foreach loop for each value of $old_name where $old_name is a filename matching "*.DOC". Note that you need to be in the correct directory to get the matches.foreach $old_name (glob("*.DOC")) { my $new_name = &add_date($filename); rename($old_name,$new_name); }
|
|---|