Not related to the error-message you get. But why do you use
instead of$new_name =~ s/.*/sniffer1.log/;
And why do you close DIR inside the foreach-loop? Rata (scratching his head)$new_name = "sniffer1.log";
In reply to Re: Problem with renaming files in directory
by Ratazong
in thread Problem with renaming files in directory
by ice_ice_ice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |