Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 romping around the Monastery: (6)
As of 2024-04-18 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found