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

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

by papidave (Pilgrim)
on Aug 07, 2007 at 14:15 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://631058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found