Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Predecrement a constant?

by monsoon (Pilgrim)
on Feb 28, 2017 at 07:14 UTC ( #1183091=obfuscated: print w/replies, xml ) Need Help??

Not much obfuscation really. The idea was to try and see if it was possible with some unusual code to predecrement a constant or at least to pretend to do so.

*0=sub: lvalue {my$l}, print --0 ->(!0)

Replies are listed 'Best First'.
Re: Predecrement a constant?
by RonW (Priest) on Mar 21, 2017 at 17:51 UTC

    Very interesting.

    I wonder if this is a side effect of the mechanism that provides the predefined variables $0, $1, $2, .... Or maybe it's a "loop hole" in the bare word symbol mechanism.

    Either way, I consider this to be a bug in Perl.

    Update: But it's a trick. Shame on me for skipping my morning caffeine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://1183091]
Approved by beech
[hippo]: Marketing should not be allowed near such utilities.
[Corion]: I should tell them about the "dim+lock all monitors to show the immediate alert centered" feature of that software so they can announce the next intranet website feature even better ;)
[Eily]: This sounds like the perfect medium to send "don't let anything distract you"

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-05-24 14:49 GMT
Find Nodes?
    Voting Booth?