in reply to hashes of arrays
When you do "$foo", it incurs a slight performance hit. Simply $foo on its own is better. Also, apparently, if $foo happens to be a scalar reference, Perl will dereference it if you don't put it in quotes, but won't otherwise. I doubt you want to open a file named with the memory address of the reference?open(FILE,"$_");
See the part of the Perl FAQ that says "What's wrong with always quoting "$vars"?"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hashes of arrays
by dws (Chancellor) on Apr 04, 2001 at 03:03 UTC |