Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^7: Naming file handles with variables?

by GrandFather (Sage)
on May 03, 2009 at 21:19 UTC ( #761619=note: print w/replies, xml ) Need Help??


in reply to Re^6: Naming file handles with variables?
in thread Naming file handles with variables?

Are there any advantages to $foo@foo = 'var' over push @foo, 'var'?

Maybe if you are playing golf? In the context I used it using push meant using a temporary variable and another line for the push so in that context there may be an advantage if you are comfortable with the technique.

I suspect the map technique may be more prone to error than the $foo[@foo] technique. ;)


True laziness is hard work

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2016-09-28 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (520 votes). Check out past polls.