- or download this
$myfile =~ s!([A-Z]+)!<i>$1</i>!g;
- or download this
$ perl -lwe '$_="hi MOM and DAD"; print;
s!([A-Z]+)!<i>$1</i>!g; print'
hi MOM and DAD
hi <i>MOM</i> and <i>DAD</i>
- or download this
$myfile =~ s!\b([A-Z]+)\b!<i>$1</i>!g;
- or download this
perl -i~ -plwe 's/mom/dad/g' *.txt
- or download this
open my $fh, "source-data.txt"
or die "opening source-data.txt: $!";
...
print $fh "</blockquote>\n";
close $fh
or die "closing source-data.txt: $!";
- or download this
while ( <$fh> )
{
...
# output the result
print $fh $_;
}