how can I do this mv ($file $new_file/$1) or die("Errors 2");
so it would stop the script in terminal if the file is not found?
otherwise it keeps repeating and repeating and I need to restart putty session so i would be able to type something
|
feedback
|
This question came from our site for professional and enthusiast programmers.
| |||
feedback
|
|
What about this then:
Please read the manual for the | |||||||||||||
feedback
|
mv()is not a Perl function. The Perl function that renames a file is calledrename(). – Kusalananda Oct 7 '11 at 17:56mvis not a perl function, and you are missing a comma in the argument list, there is nothing wrong with this code. It is the code surrounding it -- which you are not showing -- that is responsible. – TLP Oct 7 '11 at 18:28CTRL-C. You do not need to close putty. – TLP Oct 7 '11 at 21:17