When you are dereferencing, it's always safer (but more bothering to type, I know) to explicitly include braces, as you did with $_[0]; this way you will be sure that the code really does what you asked it to do.
Note that not always "what you asked it to do" is the same as "what you wanted him to do" ;-)
Ciao!
--bronto
# Another Perl edition of a song:
# The End, by The Beatles
END {
$you->take($love) eq $you->make($love) ;
}
In reply to Re: Pass by ref an array weirdness
by bronto
in thread Pass by ref an array weirdness
by aennen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |