in reply to Reaped: Why do you need $ when accessing array and hash elements in Perl?

Because that is the way that you access the arrays and hashes in Perl, that you have created. Granted, that will all change in Perl 6, but in Perl 5 and below, that is how it is done.

Regards,

Jeff

"Every time Linux boots, a penguin gets its wings"

  • Comment on Re: Why do you need $ when accessing array and hash elements in Perl?