in reply to 'perl -le' not working on the command line

Because of cmd.exe :) Behind the GUI lives the Shell, perlintro, perlrun
$ perl -lE " say for @ARGV " -- a s d f "asdf 'print 2**255;' asdf" +'print 2**255;' a s d f asdf 'print 2**255;' asdf 'print 2**255;'

Replies are listed 'Best First'.
Re^2: 'perl -le' not working on the command line
by Anonymous Monk on May 26, 2011 at 10:40 UTC
    To say it explicitly, cmd.exe, turns perl -le 'print 2**255;' into
    $ perl -le " 'print " "2**255;'" Can't find string terminator "'" anywhere before EOF at -e line 1.
    that is, the program is 'print , a syntax error. 2**255;' ends up in @ARGV.