Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Favourite One-liners?

by Anonymous Monk
on Jul 04, 2005 at 13:45 UTC ( #472238=note: print w/ replies, xml ) Need Help??


in reply to Favourite One-liners?

I always use:
perl -e 'print <>' filename
That's a one-liner I would never use. It's inefficient, and a lot longer to type than cat filename.

I use one-liners a lot. However, I seldomly use Perl in one-liners - when it comes to one-liners a Unix shell (with the standard Unix tools) usually beats Perl.


Comment on Re: Favourite 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://472238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (20)
As of 2015-07-30 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls