Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

unpack p-JAPH

by mtve (Deacon)
on May 05, 2009 at 18:22 UTC ( [id://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.

Replies are listed 'Best First'.
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 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 tweetiepooh (Hermit) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found