#!/usr/bin/perl
use strict;
use warnings;
my $pp_replaced = 0;#Indicates no occurrence of PP has been replaced yet
while(<DATA>){
if (m/^PP:/ and $pp_replaced == 0){
s/PP:/HL:/;
$pp_replaced++;#Add 1
}
print;
}
__DATA__
PP: Happy Sunday!
PP: It's a good weather.
PP: Have a blessed Sunday everyone.
d5e5
Practically a Posting Shark
831 posts since Sep 2009
Reputation Points: 162
Solved Threads: 163
Skill Endorsements: 1