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

Fibonacci

by Anonymous Monk
on Jan 21, 2004 at 20:53 UTC ( [id://323001]=obfuscated: print w/replies, xml ) Need Help??

#!/usr/bin/perl -l @J=(1);push@J,1;push@J,$J[-1]+$J[-2] for 1..19; sort@J; open(A,$0); $nth= join('',<A>); $nth=~s/\s+//og;split( /;/,$nth);$ee=0;foreach(@r=@_){while (length($_)<= $J[$ee]) {$J[$ee]=int( sqrt($J[$ee]));} @PP=split//; $char= $PP[$J[$ee]];push@HH,$" if((65<=ord( $char))&&(90>=ord($char))&&($ee!=0)) ;if(/^\#!/){splice(@PP,1,length()-6) ,$char=$PP[$J[$ee]]};push@HH, $char; $!=$char+ ++$ee;}$char=chr($!+index( $_[-4],'!'));@HH[umask()+@HH]=$char; $nth= close(A);$results = print @HH;

Replies are listed 'Best First'.
Re: Fibonacci
by ysth (Canon) on Jan 21, 2004 at 23:03 UTC
    Cute. If you use -w, it prints a copy of the output vertically also :)

Log In?
Username:
Password:

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

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

    No recent polls found