Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to What way to weigh an AoA?

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found