Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Multi-dimensional constants

by AnomalousMonk (Archbishop)
on Nov 22, 2020 at 16:42 UTC ( [id://11124024]=note: print w/replies, xml ) Need Help??


in reply to Re: Multi-dimensional constants
in thread Multi-dimensional constants

print Dumper [ (MODES)[0]() ];

This statement compiles and runs as expected under Perl version 5.30.3.1 64-bit, but fails to compile under version 5.8.9.5 32-bit (both Strawberry). In the latter case, either of
    print Dumper [ (MODES)[0]->() ];
    print Dumper [ &{ (MODES)[0] } ];
will work. I haven't done a binary search to find the version at which the quoted syntax begins to be supported (assuming, of course, that the root cause of the failure is a syntax enhancement).


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-19 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found