Re: Computer Language Shootout




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...

.



Relevant Pages

  • Re: "input_record_separator is not supported on a per handle basis at" ..file/linenum...?
    ... Did you update all your modules when you updated Perl? ... > #This package uses the mif template to build the mif file ... > # Init Paragraph tab list ... > # Extracted MIF data file ...
    (perl.beginners)
  • ANNOUNCE: DBI 1.57
    ... for perl to be configured that way, ... Don't profile DESTROY during global destruction. ... Added parent pid to default data file name. ... won't be using the dbi mailing lists for DashProfiler in future.) ...
    (perl.dbi.users)
  • Re: Assistance needed with script.......
    ... > I am somewhat new to perl. ... > have a somewhat simple script, ... there is only one for each symmvol. ... > I would like to parse from the data file, such as Front Director Paths, ...
    (perl.beginners)
  • Re: I wonder if someone can help ?
    ... PERL - Practical Extraction and Report Language but no longer in use as ... controling routines on my server are Perl scripts and for the AWS. ... a text data file. ...
    (uk.sci.weather)
  • Re: using perl in a c code
    ... On Tue, 2003-12-02 at 15:56, Manish Uskaikar wrote: ... Perl is a great language no doubt in parsing large files. ... If you are parsing a big data file, no matter how big, There is no ... Pragatee: Integrated Server-Software Suite: http://www.pragatee.com ...
    (perl.beginners)