in reply to Re^2: Match first word in line fails
in thread Match first word in line fails
sub replaceword { my $w = $_[0]; my $repl = $bad_words{ lc( $w ) }; $repl = ucfirst( $repl ) if ( $w =~ /^[A-Z]/ ); return $repl; }
Of course, this would require that the eval flag stay on the substitution in my previous post, contrary to the update which applies to the code as appears in that node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Match first word in line fails
by ysth (Canon) on Feb 02, 2005 at 06:52 UTC |