hi

i finally got it to work. it was very simple ... _if_ you remember that its not <td> 
but <td align="foo"> you are trying to match!

martin



On Wed, Apr 24, 2002 at 11:04:42AM -0400, David Gray wrote:
> > >May I suggest:
> > >(my $A = $a) =~ s/^<tr><td>(\d+)<\/td>/$1/;
> > >(my $B = $b) =~ s/^<tr><td>(\d+)<\/td>/$1/;
> > 
> > That's not what he's doing.  He's doing:
> > 
> >   my ($A) = $a =~ m{^<tr><td>(\d+)</td>};
> >   my ($B) = $b =~ m{^<tr><td>(\d+)</td>};
> > 
> > Yours leaves everything after the </td> tacked onto the end 
> > of $A; mine and his only store the number in $A.
> 
> Argh, good catch. I usually do that kind of thing like:
> 
> my $A = $1 if $a =~ m{^<tr><td>(\d+)</td>};
> 
> But I didn't that time :)
> 
> Let us know if any of this fixes your problem, Martin...
> 
>  -dave
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to