in reply to Problem with renaming files in directory
Also, I get quotes in the file names. To avoid that, you should change:
to:$new_name =~ s/.*/"sniffer$value\.log"/;
Also, readdir may not return the order you expect if you have double digits.$new_name = "sniffer$value.log";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with renaming files in directory
by ice_ice_ice (Initiate) on Jan 03, 2012 at 16:30 UTC | |
by toolic (Bishop) on Jan 03, 2012 at 16:42 UTC | |
by ice_ice_ice (Initiate) on Jan 03, 2012 at 21:00 UTC | |
by toolic (Bishop) on Jan 03, 2012 at 21:40 UTC | |
by ice_ice_ice (Initiate) on Jan 03, 2012 at 21:59 UTC |