in reply to Re^3: Insert Text which is Read from the Line Above
in thread Insert Text which is Read from the Line Above

Hi poj.

Thank you for your assistance.

You guys/gals are advanced here.

I replaced the  my $infile = $ARGV[0]; with  my $infile = C:\Users\... \abc.txt;

Similar with the output file.

I knew it was not right to do this but I did not know what else to do.

How do I get my input file read in and the output into the output file?

Again, thank you very much for the code and assistance.

jlb333333

Replies are listed 'Best First'.
Re^5: Insert Text which is Read from the Line Above
by poj (Abbot) on Feb 27, 2016 at 10:34 UTC

    replace these lines

    my $infile = $ARGV[0]; my $outfile = $ARGV[1]; unless (@ARGV==2) { die "Usage : perl $0 infile outfile\n" };

    with

    my $infile = 'C:/Users/... /abc.txt'; my $outfile = 'C:/Users/... /output.txt';

      Hi poj

      Thank you for that info.

      It is working perfectly. I really appreciate it.

      jlb333333

        Hi poj.

        I really don't know how you guys do this stuff.