but the $x is NOT declared anywhere in the package. and i don't understand what a reference of the my keyword does?
$x is declared there where it's used. \my ($x) is short for something like (my $x; \$x;)
So it returns a reference to $x, not to my.
In reply to Re: syntax question
by moritz
in thread syntax question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |