Be nice this is my first one, (boss is gone today! :) )
$s1='!,@,#,$,%,;,&,+,.,:,>,7,?,<';$s2='@,#,B,D,E,0,F,C,A,6,4,<,5,9'; sub mrg{return @_;}@a=split /,/,$s1;@c=split /,/,$s2;foreach(@a){$n= ord($_);@d=mrg(@d,chr($n+ord($c[$i])));$i++;}print@d[4,13,11,12],' ' ,@d[0,7,8,12,3,2,10],' ',@d[9,2,10,6],' ',@d[3,0,1,5,2,10],"\n";
Suggestions are very welcome!
UPDATE
After reading the BUU's suggestions I made some modifications: here's try #2 :)
Lobster Aliens Are attacking the world!$;= '!,@,#,$,%,;,&,+,.,:,>,7,?,<,9,5,<,4,6,A,' .'C,F,0,E,D,B,#,@';$|= 1;sub mg{return@_}eval{ @_=split /,/,$;;@ARGV=reverse(splice(@_,14,27) );$;=();map{@{$;}=mg(@{$;}, chr(ord($_) + ord( $ARGV[$i])));$i=$i+scalar(@_)-13;}@_;@ARGV=mg( @_,@ARGV);print@{$;}[4],@{$;}[13],@{$;}[11],@{ $;}[12],' ',@{$;}[0],@{$;}[7],@{$;}[8],@{$;} [ 12],@{$;}[3],@{$;}[2],@{$;}[10],' ',@{$;}[9,2, 10,6],' ',@{$;}[3,0,1,5,2,10],"\n";}##########
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: My very own little JAPH
by BUU (Prior) on Jul 16, 2002 at 23:05 UTC | |
|
Re: My very own little JAPH
by cecil36 (Pilgrim) on Jul 17, 2002 at 19:41 UTC | |
|
Re: My very own little JAPH
by BUU (Prior) on Jul 20, 2002 at 20:27 UTC |