Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
XP is just a number
 
PerlMonks  

unpack p-JAPH

by mtve (Chaplain)
on May 05, 2009 at 18:22 UTC ( #762004=obfuscated: print w/ replies, xml ) Need Help??

print unpack p,unpack$^V<5.01?P4:x12a4,unpack P16,pack L,\japh

Please tell your perl -v if it does not work for you. Update: thanks for reports, it should be fixed indeed.

Comment on unpack p-JAPH
Download Code
Re: unpack p-JAPH
by haoess (Curate) on May 05, 2009 at 19:06 UTC
    % perl 762004.pl 'x' outside of string in unpack at 762004.pl line 1. % perl -v This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi Copyright 1987-2007, Larry Wall [...]

    -- Frank

Re: unpack p-JAPH
by jpearl (Scribe) on May 05, 2009 at 20:32 UTC
    works for me with:
    % perl -le 'print unpack p,unpack$^V<5.01?P4:x12a4,unpack P16,pack L,\ +japh' % perl -v This is perl, v5.10.0 built for i686-linux Copyright 1987-2007, Larry Wall [...]
Re: unpack p-JAPH
by tweetiepooh (Friar) on May 27, 2009 at 10:32 UTC
    Ok here
    $ perl -v This is perl, v5.10.0 built for sun4-solaris ...
Re: unpack p-JAPH
by ambrus (Abbot) on Nov 30, 2011 at 09:41 UTC

    Doesn't work for me: gives 'x' outside of string in unpack at - line 1., with perl 5.14.2 x86_64-linux. Same error with a recent bleadperl, perl 5.12.3 and 5.10.1 on the same machine.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://762004]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-04-23 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (556 votes), past polls