in reply to Re: Felling a tree JAPH
in thread Felling a tree JAPH

$ perl -v This is perl, v5.8.8 built for msys $ perl 20130830.1052349.japh.pl Malformed prototype for main::_: _ at 20130830.1052349.japh.pl line 2.

--MidLifeXis

Replies are listed 'Best First'.
Re^3: Felling a tree JAPH
by Grimy (Pilgrim) on Sep 04, 2013 at 15:01 UTC
    Well then, just replace this _ with a $. It should work the same way, I only chose _ for aesthetic reasons.

    EDIT: Never mind trying, it won’t work, actually. Here’s a fixed version:

    sub'DESTROY{print${sub'_($){bless\pop}pop}->[0]} _[J,_[q q q,_[o^O,_[q[,]],_[k,_[r],_[e]],_[h,_[c ],_[a]]],_[v80,_[l],_[r],_[e],],],_[u,_[a,_[h,_[ r],_[e],],_[n,_[t],_[o],],],_[q[s],_[$"],_[t]]]]
    Tested on 5.8, 5.10, 5.14 and 5.16.

      Cool. It works. I will take a bit of time to look at this later.

      --MidLifeXis