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: Intermediate:
appending a line to a text file

 



rttrtcmd2002
New User

Nov 23, 2009, 6:47 PM

Post #1 of 2 (622 views)
appending a line to a text file Can't Post

I have a line that I want to append to a text file. Here it is:

Control.LineList.#"#$x".Value = "$array[$x]";

where $x is equal to 2 defined earlier in my program. When the program is run it should append to a text file so the final output should be:

Control.LineList.#"#2".Value = "500";

Having problem with the syntax to make it work. Can anyone help. thanks


ichi
User

Nov 23, 2009, 7:20 PM

Post #2 of 2 (619 views)
Re: [rttrtcmd2002] appending a line to a text file [In reply to] Can't Post

how are you appending to it right now?? see perldoc -f open to see how to append to file.

 
 


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

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