Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: JAPH Introspection

by ktross (Deacon)
on May 16, 2005 at 14:42 UTC ( [id://457481]=note: print w/replies, xml ) Need Help??


in reply to Re: JAPH Introspection
in thread JAPH Introspection

You don't know how much that disappoints me, mostly because I have no idea why it would output that. It should output Just another Perl Hacker,

Update: I bet you added #!/usr/bin/perl to the top of the file, didn't you.

In short, This Japh should select the appropriate chaticters from it's own code to print the JAPH. Hence the title "Introspection", a deap reflection upon one's self.
# The reformatting with comments nueters the code seek DATA,0,0; # open file containing this code while(<DATA>){ # read in each line #Save each character from the code into a 2-d array @JAPH @_=split'',$_;push @JAPH,[@_]} # split string by ';' for(split/;/,'0,48;0,43;0,44;0,35;0,4;3,20;3,24;3,14;0,35;0,45;0,1;3,1 +5;0,4;0,50;0,1;3,15;0,17;0,4;0,45;3,20;3,17;0,3;0,1;3,15;0,9') #split resulting strings by ',' and save points into 2-d array @n {@_=split /,/,$_;@_,push @n,[@_]} for$c(@a..@n-1){ #cycle through the array of points #print the character located at the point position print $JAPH[$n[$c][0]][$n[$c][1]] } __END__ # Tag so the seek will read in entire file

Spem Successus Alit

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found