[Israel.pm] Trivia question
Gaal Yahas
gaal at forum2.org
Sun Aug 22 16:15:49 PDT 2004
On Mon, Aug 23, 2004 at 01:43:46AM +0300, Anatoly Vorobey wrote:
> You wrote on Mon, Aug 23, 2004 at 12:33:49AM +0300:
> > >>Hi,
> > >>Which novel has a couple of pages of perl code written specifically for
> > >>that novel?
> > >>(novel - a fictional work of book length)
> > >
> > >
> > >_Cryptonomicon_, I guess? (though it's less than a couple of pages).
> >
> > That's the one I know.
>
> So [slightly offtopic], which novel has a (somewhat smaller,
> but comparable) amount of BASIC code written especially for that novel?
That would be Foucault's Pendulum.
A Perl port:
#!/usr/bin/perl -wl
use Algorithm::Permute;
chomp (my @array = <>);
Algorithm::Permute::permute { print @array; } @array
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list