various people have contributed to this interesting thread...
At 6:14 PM -0700 7/9/01, John W Baxter wrote:

[snip]


>$c =~ m/:([^:]*)$/ ? print "$1\n" : print "$c\n";

[snip]

>Perl will start at the left and advance rightward to the first : then find
>a string of non-colons, note that the end of the string isn't there, then
>give up on that colon and walk along to the next one, and non-colons again,
>noting that it isn't yet at end of string and so on until it encounters the
>"right" colon.)

Wait -- doesn't the $ 'anchor' the regex to the end of the string? If 
so, that's where the matching attempts *start*, yes?

1;
-- 

   - Bruce

__bruce_van_allen__santa_cruz_ca__

Reply via email to