http://qs321.pair.com?node_id=450549


in reply to Tutorial: Introduction to Object-Oriented Programming

Please tell me this is a typo and that Perl hasn't added Yet Another Obfuscated Special Variable...
  if (@$)

Replies are listed 'Best First'.
Re: Is this a typo?
by dragonchild (Archbishop) on Apr 22, 2005 at 19:45 UTC
    Yes, that is a typo. Otherwise, it would actually mean the list of PIDs associated with this program, which makes no sense. ($$ is the PID for the process.)