Maybe this is more clear
$ perl -MO=Deparse,-p - warn \my %hash; warn \my(%hash); ^Z warn((\my(%hash))); warn(\(my(%hash))); - syntax OK $ perl - warn((\my(%hash))); warn(\(my(%hash))); ^Z Warning: something's wrong at - line 1. Warning: something's wrong at - line 2.
Any way you slice it you're not getting a reference from Deparse output
In reply to Re: Deparse says \my(%hash) is the same as \my %hash but it isn't
by Anonymous Monk
in thread Deparse says \my(%hash) is the same as \my %hash but it isn't
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |