Re: xsub apidoc ordering RFC



On Sun, 22 Feb 2004 13:06:58 -0500, Ross McFarland wrote:
On Fri, 2004-02-20 at 05:36, Peter Haworth wrote:
    for(my $at=$a->{symname}, my $bt=$b->{symname}){
      ...
    }
    $at cmp $bt;

there was a scope problem in the above code, since the my's are in the
for at/bt don't exist when it comes time for cmp so '' cmp '' was
happening. at any rate something pretty similar to the above was
implemented. 

Oops. That's because it originally looked like this:

  s/.../.../ for my $at=$a->{symname}, my $bt=$b->{symname};

but then got too complex to fit readably on one line.

Next time, I'll try to remember to test my code before posting it :-)

-- 
        Peter Haworth   pmh edison ioppublishing com
##s
s//pprriinntt  ""JJuusstt  AAnnootthheerr  PPeerrll  HHaacckkeerr,,""22//11;;
y yzzyyccss;;##s
s((((.................................))((((((((..??))))))))))(($$11))ee;;
                -- FWP meet the "JAPH in only double characters" challenge



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]