When Perl sees
args$1
it interprets that as:
args($1)
that is, a function call. You want to have args$1 as a string and to use it as a hash lookup. This means you have to quote it:
"args$1"
In reply to Re: Can't call method "args" without a package or object reference
by Corion
in thread Can't call method "args" without a package or object reference
by himanshu.padmanabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |