Re: Computer Language Shootout
- From: igouy@xxxxxxxxx
- Date: 29 Nov 2005 23:41:04 -0800
Jim Gibson wrote:
> In article <1133293795.828420.209420@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
> <igouy@xxxxxxxxx> wrote:
>
> > We don't have Perl implementations for a couple of programs, and a
> > couple of the Perl programs we do have show Error.
> >
> >
> > http://shootout.alioth.debian.org/benchmark.php?test=all&lang=perl&lang2=perl&
> > sort=fullcpu
> >
> >
> > Please contribute missing Perl programs or faster more-elegant Perl
> > programs.
> >
> > Please follow the FAQ instructions
> > http://shootout.alioth.debian.org/faq.php#contribute
> >
> > best wishes, Isaac
> >
>
> Judging from the output displayed on
>
> <http://shootout.alioth.debian.org/benchmark.php?test=regexdna&lang=perl
> &id=0>
>
> it looks like the perl version of regex-dna was run with the wrong
> argument:
>
> /usr/bin/perl ../regexdna.perl 1
>
> instead of
>
> /usr/bin/perl ../regexdna.perl ../../../website/desc/regexdna-input.txt
>
> In other words, without its data file.
Thanks for directing my attention to that symptom, the perl proram was
being provided with the redirected file regexdna-input.txt, but the
command-line parameter seemed to cause some confusion.
Simply changing
my $contents = <>;
to
my $contents = <STDIN>;
has fixed that problem
Which just leaves 3 other errors...
.
- References:
- Computer Language Shootout
- From: igouy
- Re: Computer Language Shootout
- From: Jim Gibson
- Computer Language Shootout
- Prev by Date: Time::HiRes usleep on windows strange behaviour...please please help!!
- Next by Date: Re: Help: String search in Windows 2000 doesn't find text in Windows XP: MS Word document SOLVED: binmode
- Previous by thread: Re: Computer Language Shootout
- Next by thread: Can Perl redirect STDOUT to file AND to command window?
- Index(es):
Relevant Pages
|