There's more than one way to do things | |
PerlMonks |
Re: What way to weigh an AoA?by Errto (Vicar) |
on May 17, 2006 at 04:45 UTC ( [id://549949]=note: print w/replies, xml ) | Need Help?? |
Others have pointed out the correct syntax. I just wanted to comment on what $$#foo actually does. The weird number you're seeing is the process ID. Perl treats $$ as a variable name (see perlvar) and the # introduces a comment just like it normally does. The fact that you didn't get a syntax error is a coincidence due to the fact that this print statement must have been at the end of a block.
In Section
Seekers of Perl Wisdom
|
|