On Apr 14, Stephen Day said:
bash-2.05b$ perl -e 'if ($subject eq '' || !defined $subject) {print "no subject\n";}' syntax error at -e line 1, near "eq ||" Execution of -e aborted due to compilation errors.
It seems '' is not the same as "". Any idea why?
Because you used '...' to send the string to perl -e, that's why. Your internal quotes are the same as your external quotes.
-- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>