Couldn't figure out how to get the #! to work, but it's not really necessary. Uses the open 0 trick, so save it to a file before running
use strict ;my@f; use warnings ; open 0;$/= \11;my $i= 0; while ( <0>){chop; push@{$f [ $i]},$_;$i =($i+1)%3} close 0;$~ ="it"; my( $l,$m,$r)= map{$f[$_] }(0 .. 2); for(0..$#{ $l}){$m->[ $_]||= ''; $r-> [$_ ] ||=''; #$l }){ $m ->[ format it= @<<<<<<<<< @<<<<<<<<< @<<<<<<<<< $l-> [$_], $m-> [$_], $r-> [$_], . write;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Format quine (slightly obfu)
by pmonk4ever (Friar) on Dec 03, 2009 at 18:08 UTC | |
by bv (Friar) on Dec 04, 2009 at 00:13 UTC |