Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: what's this loo code? (*slurp*)

by Kanji (Parson)
on Feb 04, 2003 at 18:51 UTC ( [id://232619]=note: print w/replies, xml ) Need Help??


in reply to Re: what's this loo code? (*slurp*)
in thread what's this loo code?

I'm almost certain you can make that faster or shorter

I can't imagine it making a significant dent in speed for small(er) files, but -l (sh|c)ould be omitted.

Perhaps...

perl -ne 'END{ print $., $/ }' file

...or...

perl -ne 'END{ print $. }' file

    --k.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found