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. ;)
In reply to Re^7: Naming file handles with variables?
by GrandFather
in thread Naming file handles with variables?
by sinee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |