Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: one-liner peeks at @INC

by chipmunk (Parson)
on Feb 01, 2001 at 20:32 UTC ( [id://55730]=note: print w/replies, xml ) Need Help??


in reply to one-liner peeks at @INC

A nice way to get newlines automatically is to use the -l command-line option. This makes your one-liners even shorter:

Print @INC     perl -wle 'print for @INC' Print filenames in @INC to pipe     perl -wle 'for (@INC) { print for <$_/*> }' | more ...and so on. -l is great for one-liners like these.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-16 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found