Hi, I am too old to have homeworks on perl :) I tried for the first case: s/\ws\b/$1/;
but trick to understand is that I need to substitute forests with forest. I can probably use substr however was looking for a elegant solution. Mandar On Sat, 19 Jun 2004, Tim Johnson wrote: > > This sounds like a homework project. We don't generally do people's > homework for them. If I'm wrong, I apologize. Maybe you can tell us > what you've tried so far. Have you read through 'perldoc perlre'? > > I would recommend the module YAPE::Regex::Explain if you want some help > figuring out what your regular expressions are really doing. > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>