in reply to system( 'mv ...' ) not working?
you are actually telling the shell to:system("mv $newname /tmp/trashed");
That is, running mv with only one parameter, name. The cure? Just add chomp($newname); after my $newname = `convert $name`;mv name /tmp/trashed
|
|---|