[Chicago-talk] Bareword found where operator expected
Andy Lester
andy at petdance.com
Mon Mar 8 05:35:04 PST 2010
On Mar 8, 2010, at 7:27 AM, Richard Reina wrote:
> system("gnome-terminal -x perl -e 'print "Hello World\n"; sleep 4;'");
You have double quotes inside of that string. You need to do either:
system("gnome-terminal -x perl -e 'print \"Hello World\n\"; sleep 4;'");
or
system(q{gnome-terminal -x perl -e 'print "Hello World\n"; sleep 4;'});
--
Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance
More information about the Chicago-talk
mailing list