Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Eval Squared

by ruoso (Curate)
on Apr 10, 2006 at 23:12 UTC ( [id://542395]=note: print w/replies, xml ) Need Help??


in reply to Eval Squared

Allright!

The working code is:

$_=q&pqfo%;-tijgu<%0>voefg<%`>=%;?<t")/*" %2!"h<t"))@;=]t*!|3-~*"(%c.>(/)mfohui)%2*03*/#<#"hfy< t"))@;?]t*!|3-~*"(%c,>(/)mfohui)%2*03*/#<#"hfy<t"))@; ],]t*|3-~*"(%b\%c^,>(/)mfohui)%2*03*/#<#"hf<t"))@;].] t*|3-~*"(%b\%c^.>(/)mfohui)%2*03*/#<#"hf<t"?]t!"]%c,, <"hy<t"=]t!"]%c..<"hy<t")\,.^*]t"]%b\]%c^%2%2<]o"h<t" ]/]t"qsjou!dis)]%b\]%c^*<"h<t"-]t!"]%b\]%c^>pse)tvctu s)=?-1-2**<"hy<t"]\]t"xijmf)]%b\]%c^*|"h<t"]^] t"~"h<fwbm<&;y~\n~~d&&s~(.)~chr(ord($1)-1)~eg&&eval;

I removed the strange tr which was depending on the charset... and also removed a strange part of the end of the while block... And now...

>++++++++++>++++++++++++++++++++++++++++ +++++>++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ >+++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++>+++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++>+++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++>+++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++>+++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +>++++++++++++++++++++++++++++++++>+++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++>++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++>+++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ >+++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +>++++++++++++++++++++++++++++++++>+++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++>++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++>++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++>+++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++>++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++>++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++>+++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++>++++++++++++++++++++++++++++++++>++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++>+++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++>+++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++>+++++++++++++ ++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++[.<]

This code was in the dumb way... of course there is a smarter way of using it... BTW, you must save it as a file an call it as the first parameter to the script

daniel

Replies are listed 'Best First'.
Re^2: Eval Squared
by zshzn (Hermit) on Apr 12, 2006 at 03:19 UTC
    The tr should be left in, so that non-brainfuck characters are removed. It wasn't part of the problem.

    +J+u+s+t+ ++[->>+ +a+n+o+t+h+e+r+ +<<]>>++++. -P-e-r-l- ----.>+++[-<+++++>]<.-- -h-a-c-k-e-r.

      but as it was breaking in different charsets, I just removed it...

      daniel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-23 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found