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

Re: Favourite One-liners?

by tlm (Prior)
on Jun 28, 2005 at 12:54 UTC ( [id://470609]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    % perl -MO=Deparse,-p -e '<Perl code>'
    
  2. or download this
    -nle '}{print$.' foobar.txt
    
  3. or download this
    % perl -MO=Deparse,-p -nle '}{print$.'
    BEGIN { $/ = "\n"; $\ = "\n"; }
    ...
        print($.);
    }
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-25 03:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found