Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")

by LanX (Archbishop)
on Jul 18, 2019 at 21:02 UTC ( #11102991=note: print w/replies, xml ) Need Help??


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")

> Windows is clearly superior to Linux,

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.

update

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:\>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^3: Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11102991]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-12-15 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?