friends, ************************ script : $_='as great as perl'; print $& ."\n" if (/\beat/); print $& ."\n" if (/\bgre/);
output : gre *********************** Why 'boundary' assertion does not match in end of word , but only the start of word? thanks, Jay -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>