On Fri, 18 Dec 2009, Jürgen Exner wrote:
> gamo <> wrote:
> >This code
> >
> >@sorted = sort {
> > field4($a) <=> field4($b) ||
> > field1($a) <=> field1($b)
> >} @oferta;
> >
> >simply don't work.
> >
> >The error message is
> >Undefined subroutine &main::field4 called at subasta.pl line 30.
>
> Well, yeah, sorry for asking the obvious, but did you define a function
> field4() in your main program? You are using it in the comparision, but
> perl can't find it.
>
> jue
>
I'm afraid I take the FAQ suggestion too literally.
How can be that subs be writed?
The array @oferta has $oferta[0 to .5M][0 to 3]
TIA
--
http://www.telecable.es/personales/gamo/
Honesta turpitudo est pro causa bona --Publilius Syrus
"Was it a car or a cat I saw?"
perl -E 'say 111_111_111**2;'