in reply to Re: need help in writing aperl script
in thread need help in writing aperl script

I have started writing the script to open a file and parse through the lines.but iam troubling with pattern matching and insert the words in the resulting line.
open my $file ,"+<","reg" or die $!; while (my $line = <$file>) { chomp $line; print "$line\n" }

Replies are listed 'Best First'.
Re^3: need help in writing aperl script
by Anonymous Monk on May 27, 2015 at 03:20 UTC

    I have started writing the script to open a file and parse through the lines.but iam troubling with pattern matching and insert the words in the resulting line.

    Ok then, then look here :)