http://qs1969.pair.com?node_id=11150141


in reply to Why does system("mv $x $y") not work when it works at the command line?

system commands are generally the last resort.

Also a lot easier to read and less prone to warnings:
die "$ARGV[0] doesn't exist" unless @ARGV && -e $ARGV[0];
  • Comment on Re: Why does system("mv $x $y") not work when it works at the command line?
  • Download Code