Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Environment Variables

by archen (Pilgrim)
on Jan 03, 2002 at 19:19 UTC ( #135989=note: print w/ replies, xml ) Need Help??


in reply to Environment Variables

This really doesn't have much to do with your question, but is more a style thing... but anyway, why do you chop $row when you're just using the first item returned by split? As far as I can tell this doesn't really help... Anyway, it might be something to think about.

while(<DB>) { print ( split(/\|/) )[0]; }
Update: Oh yeah, this code just does the same thing as yours (so nothing new here). See posts above and below for actual insightful information :p


Comment on Re: Environment Variables
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-28 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls