in reply to Re: 2014 Code Golf Challenge
in thread 2014 Code Golf Challenge

Just a shame it depends on the underlying architecture or how perl was built. Beautiful though. I get:

$ perl -we'print reverse$/,unpack HU,Ffman' 1024

on all my current boxes, including Windows 7, and with all versions of perl from 5.6.0 .. 5.19.6. (5.005 and 5.004 don't know "U", so they print 1 and 5.003_07 prints 4)


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: 2014 Code Golf Challenge
by choroba (Cardinal) on Jan 03, 2014 at 17:18 UTC
    I am getting 1024, too (reverse in list context). Fix:
    perl -lwe 'print~~reverse unpack HU,Ffman'
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^3: 2014 Code Golf Challenge
by ambrus (Abbot) on Jan 03, 2014 at 17:09 UTC

    I don't think it depends on the architecture on anything else.