in reply to Re: A Better Way
in thread A Better Way

Thanks for your reply . I am new to programing . I did not know you could use a one liner in a cgi program. Would that not have to be called with system()? I am not familiar with one liners. Does that code replace all instances or just the first one is reads ? The reason I created my program in the above way Is so it only replaces the First Line in the Loop not Every Line it Loop Thanks again for all your help

Replies are listed 'Best First'.
Re^3: A Better Way
by moritz (Cardinal) on Nov 05, 2010 at 06:50 UTC
    I did not know you could use a one liner in a cgi program

    And I did not know that you wrote a CGI program. It didn't say so anywhere in your original post, and since your program doesn't write a Content-Type header, it can't be valid CGI either.

    That said, you can still apply the -i option on the shebang line, see perlrun.

    Perl 6 - links to (nearly) everything that is Perl 6.
      Sorry .My bad .
      I will try to be more clear with my future post.