Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: symbolic references

by james2vegas (Chaplain)
on Jan 01, 2011 at 09:08 UTC ( #879978=note: print w/replies, xml ) Need Help??

in reply to symbolic references

This is a deliberate exception, see strict:

There is one exception to this rule: $bar = \&{'foo'}; &$bar; is allowed so that "goto &$AUTOLOAD" would not break unde +r stricture.
and running your code through B::Deparse you get (leaving out all the 'feature' stuff):
sub test { goto \&{'greet';}; }
which triggers the exception.

UPDATE: checking your actual code, it is in sub AUTOLOAD, exactly the reason why the exception exists. If something about strict mode confuses, check strict first.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://879978]
[marto]: not on the Sun, it'd vaporise
[Corion]: marto: No, a Sun Balcony, it was an ill-fated attempt to revive the Sparc series after the Pizzabox :)
[marto]: ah Sun, I sold my Pizzabox in around 2005
[Corion]: I used one at $work as a terminal, but those days are long gone by ;)
[marto]: I have an old IBM infowindow terminal to repurpose, I'll just wire a raspberry piz zero to the cable, providing access and wiFi :P
[marto]: the kids will love it

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-03-21 11:18 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.