I'm trying to move over a string and match two types of patterns, call them A and B. B 
always matches A, and A never matches B.

To work this out I decided that once I matched A on my input string, it would be a 
good idea to remove what I matched from the string.

As a trivial example, I do this:

    my( $a, $b, $c ) = $input =~ m/$A/o;
    my $match = $&;

    ... processing ...

    $input =~ s/$match//;

This works great -- but not for all cases!

I perform regexs in processing, but that shouldn't matter since I save $& directly 
when I want it, right?

Is anything blatantly wrong? Is there a better way to do this? Does anybody need more 
information?

--------------------------
David Olbersen 
iGuard Engineer
11415 West Bernardo Court 
San Diego, CA 92127 
1-858-676-2277 x2152

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

Reply via email to