Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Data Dumper Japh

by liverpole (Monsignor)
on Jan 16, 2007 at 01:45 UTC ( [id://594836]=obfuscated: print w/replies, xml ) Need Help??

It's been a while since I've written one, so...
use Data::Dumper; $Data::Dumper::Indent = $Data::Dumper::Sortkeys = cos log 1; sub Oxff { (chr pop)x(chr pop) } $J = (Oxff+0x32,0x23); $j = (Oxff+0x34,0x23); $/ = (Oxff+0x36,0x23); $A = (Oxff+0x33,0x20); $a = (Oxff+0x37,0x20); $, = (Oxff+0x34,0x20); $P = (Oxff+0x32,0x20); $p = $J.$P.$J; $; = "$J $J"; $H = $".$J.$A; $h = $".$J.$,; $z = (Oxff+0x31,0x23). $"; print Dumper { 'z" } __END__ '=>q^@^x12^'"9`,)6%20/,%',g=>' ',d=> "$A$p $p$z$H$/ $/ $J $p$A$j$z$j $/",b=> "$A$p $p$z$j$A$j$P$p$P$J$z$/ $; $j $j$z",h=> "$j$z$a$a$, $p$a$a$a$a$,$P$J",m=> "$J$, $j $p $j$P$p$P$/ $j $p $j $p$P$J",k=> "$j$z $j $/$h$p$P$j$z$J$,$j$A$j $/$,",f=> " $J$z$A$J$z $j$P$J$A$p $p$P$J$z$P$J$A$; $j $p",e=> "$J $p$h$J$H$p $J $J$z$J $p$A$;$H$; ",i=> "$p $j $j$z$h$p$P$j$A$j $p $j $j$z$P$J",j=> "$p$H$p$h$/$, $J$h$J $p$A$p$P$J",l=> "$J$,$H$J $p$,$p $p$h$J $p$A$J$H$J",c=> "$A$p $J$h$J$A$p $J$z$; $p$A$;$H$p",a=> "$j$J$z$a$a$,$J"}

s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re: Data Dumper Japh
by muba (Priest) on Jan 16, 2007 at 02:32 UTC
    Heh, nifty!

    Also, it took a good second look to see the distinction between Ox and 0x.

      update: sorry about not using a spoiler tag...

      sub Oxff cannot start with a number...(without symbolic refs tricks like

      % stephan@armen (/home/stephan) % % perl -we ' *{"11abc"} = sub { print q[ok] }; *{"11abc"}{CODE}->()' ok % stephan@armen (/home/stephan) % % perl -we ' *{"11abc"} = sub { print q[ok] }; &{*{"11abc"}}()' ok

      actually I think the second form could work with less braces ...humm

      cheers --stephan

        You can't just omit the braces, but you can do this instead:

        *{"11abc"}->(); or &{"11abc"}();

        The first one works because you can dereference the glob like any of a scalar, array, hash, code, io, or glob reference. That is, when you do this, you don't explicitly need to take the right part of the glob with the *foo{THING} notation.

        The second should be obvious.

Re: Data Dumper Japh
by sgt (Deacon) on Jan 16, 2007 at 10:16 UTC

    I like it!! thanks

    cheers --stephan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://594836]
Approved by muba
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-24 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found