Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: printing @INC contents and Command line interpretation

by papidave (Pilgrim)
on Aug 07, 2007 at 14:15 UTC ( #631058=note: print w/replies, xml ) Need Help??


in reply to Re: printing @INC contents and Command line interpretation
in thread printing @INC contents and Command line interpretation

I tend to favor the join myself for one-liners like that, but I always include an empty item after @INC so the last line will get a newline on it.
perl -e 'print join "\n", @INC, ""'
The variant that uses "for @INC" avoids that question; perhaps I may need to make a style change. I wonder how they compare for performance, when run in a tight loop?
push @things_to_do, performance_test( $foreach, $join );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2020-01-22 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?