On Wed, Apr 2, 2008 at 1:09 AM, Peter Abbott <[EMAIL PROTECTED]>
wrote:
> [..snip..]
> if ( $_ =~ m/^Box(\d) ([A-Z]+(\. | ?)[A-Z]* ?[A-Z]*).*?(\d).*?(\d\d\.\d
> \d).*?(\d*\.\d\d)L/) {
> $box = $1;
> $name = $2;
> $name =~ s/\.//;
> $place = $4;
> $time = $5;
> $margin = $6;
> }
> Undoubtedly something simple that a self taught dummy has failed to
> grasp.
>
Hi Peter,
I'm not too sure about this, but I believe when you do "$name =~", you're
effectively starting a new regular expression which means it clears $1, $2,
$3, $4, etc (unless you use brackets inside the new regular expression).
Maybe someone else can explain it better than me? :-)
HTH!
- Gonzalo
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html