in reply to Re^2: Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")
in thread Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")
You mean because on Windows you need to put the code in double quotes which don't collide with single quotes?
The best thing would be a Perl shell without the need to quote at all and calling OS commands inside out.
the second best thing is perl <RET>
Perl reads from STDIN then, Ctrl-d or __END__ ends it. Works on both plattforms.
C:\>perl -w print $x ^D Name "main::x" used only once: possible typo at - line 2. Use of uninitialized value $x in print at - line 1. C:\>
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice