Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

unpack p-JAPH

by mtve (Deacon)
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.

Replies are listed 'Best First'.
Re: unpack p-JAPH
by haoess (Curate) on May 05, 2009 at 19:06 UTC
    % perl 'x' outside of string in unpack at 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://762004]
Approved by planetscape
[marioroy]: LA only $ and \ needed backslash, not ' and ".
[marioroy]: my @music_times = qx(find \$HOME/Music/ Albums -type f -iname '*.mp3' -exec mp3info -p "%S\\n" {} \\;);
[marioroy]: I wanted to come back and report on that.
[marioroy]: cheers

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-04-23 22:38 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (433 votes). Check out past polls.