Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: 2014 Code Golf Challenge

by Tux (Canon)
on Jan 03, 2014 at 08:15 UTC ( [id://1069100]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1069100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found