Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: pack on unpack with same template

by kcott (Archbishop)
on Jul 28, 2021 at 07:06 UTC ( [id://11135423]=note: print w/replies, xml ) Need Help??


in reply to Re^3: pack on unpack with same template
in thread pack on unpack with same template

"That was actually unneeded. (No big deal ... just FYI.) ..."

Well, that surprised me but it seems you are quite correct:

$ perl -e "print 'qwe'" qwe $ perl -e "my $x = 'qwe'; print $x" syntax error at -e line 1, near "my =" Execution of -e aborted due to compilation errors.

I've had so much trouble with perl -e "..." in the past, that I now just automatically write perl -e '...', without giving it a second thought. I suppose my one-liners usually have a variable. Anyway, good to know; although, my muscle memory may take some convincing. :-)

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-16 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found