http://www.perlmonks.org?node_id=1052175


in reply to Felling a tree JAPH

Which version of Perl are you using? I am getting the following outputs:
~$ perl5.10.1 japh r Perl hacker,Just anothe ~$ perl5.16 japh er Perl hacker,Just anoth

Replies are listed 'Best First'.
Re^2: Felling a tree JAPH
by MidLifeXis (Monsignor) on Sep 03, 2013 at 20:31 UTC

    Interesting. 5.8.9, Windows.

    $ perl 20130830.japh.pl Just another Perl hacker,

    Do you get the same results every time, or does it change on each run?

    Update: s/Win/Windows/ for clarity :-)

    --MidLifeXis

      For a given version, I get a consistent result. I reckon the discrepancies between different version are due to internal changes to the GC.

      Relying on DESTROY is problematic, because the order in which thingies are GC’d is unspecified.

        That is true. Since they are consistent per version (I wonder if per platform makes any difference), I should see if I can reorder the data to make it work out on each :-)

        --MidLifeXis