keesturam has asked for the
wisdom of the Perl Monks concerning the following question:
I have started learning perl and was trying to do some exercise in regular expressions.
One of the exercise was this..
"Construct regular expressions which can pick out
words from a file with the Words containing an exclamation mark"
I can write a pgm to find if there is an exclamation in a line/file. But how do I extract the word containing a reg ex (exclamation as in this case)?
I tried googling, but couldn't find a suitable answer.