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
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 :-)
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 :-)
The Borg Queen
Results (54 votes),