in reply to Re^2: system command with arguments Error
in thread system command with arguments Error

It should output something more.


Anyway, a better snippet for debugging:

use Cwd; my $cmd = "perl Cart.pl $manuf $series $model $url $kb_color_style_nam +e $kb_color_image_url $kb_color_image_id"; print "cmd is $cmd\n"; printf "running at %s\n", getcwd; system($cmd) == 0 or die "cant run!!";

What does that output?

Replies are listed 'Best First'.
Re^4: system command with arguments Error
by Corion (Patriarch) on Jan 07, 2013 at 21:38 UTC

    Please do output $? and $^E in your error message when system fails.

    system($cmd) == 0 or die "system $cmd failed: $? / $^E"