CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Laurent_R] how to rewrite a specific line of a txt file: Edit Log



gerble1000
User

Aug 28, 2012, 10:35 AM


Views: 2176
Re: [Laurent_R] how to rewrite a specific line of a txt file

how will i know what line i am writing to.
for instance i need to change line 11 to $myvar

am i right in saying the "while" will put the file into $line which i can change via $line[11] = $myvar;
and the print $out $line;


(This post was edited by gerble1000 on Aug 28, 2012, 10:40 AM)


Edit Log:
Post edited by gerble1000 (User) on Aug 28, 2012, 10:39 AM
Post edited by gerble1000 (User) on Aug 28, 2012, 10:40 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives