Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: A "recursive" JAPH

by K_M_McMahon (Hermit)
on Feb 16, 2005 at 01:07 UTC ( [id://431400]=note: print w/replies, xml ) Need Help??


in reply to A "recursive" JAPH

When I run this, I get print pack 'c*',(74,46,65,46,80,46,72,46,10);

If you change the last print to eval it works.
for((112,97,99,107)){$s.=chr $_}; ($z="``'=``:=`~,=``~=``{=;'=``'=+}=++=`~}=;". "'=;+=++=:'=;+=::=:~=,,=,'=::=,'=,:=::=,:=,;". "=::=,'=,:=::=,{=:_=::=,'=,:=::=,,=,~=::=,'=,". ":=::=:+=:_=:`=,+=`~")=~tr/~`';:,{}_+=/0-9i/; eval "\$_=$s 'c*', qw/@{[split /i/,$z]}/;";eval;



-Kevin
my $a='62696c6c77667269656e6440676d61696c2e636f6d'; while ($a=~m/(^.{2})/s) {print unpack('A',pack('H*',"$1"));$a=~s/^.{2}//s;}

Replies are listed 'Best First'.
Re^2: A "recursive" JAPH
by chas (Priest) on Feb 16, 2005 at 03:02 UTC
    Kevin, Yes, but the the idea of "recursive" is that this code prints code that prints J.A.P.H. if you run it. One could similarly have code that prints code that prints code that prints J.A.P.H. I guess this is a bit warped...
    chas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2025-01-13 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (28 votes). Check out past polls.