Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: A step on the path to enlightenment

by Aristotle (Chancellor)
on Mar 17, 2003 at 12:58 UTC ( [id://243630]=note: print w/replies, xml ) Need Help??


in reply to A step on the path to enlightenment

And of course you can also use -l to shorten any other variants. -n might also be of interest.
perl -le "print eval while <>" perl -nle "print eval" perl -ple "$_=eval"
Personally, simply for the sake of clarity, I'd prefer the -n variant.

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2025-01-18 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (56 votes). Check out past polls.