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];
In reply to Re: Why does system("mv $x $y") not work when it works at the command line?
by misterperl
in thread Why does system("mv $x $y") not work when it works at the command line?
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |