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: [jdp12383] File is not updating: Edit Log



FishMonger
Veteran / Moderator

Feb 7, 2013, 11:17 AM


Views: 590
Re: [jdp12383] File is not updating

In the print statements you need to remove the comma after the filehandle as well as the ">>".


Code
print $FILE "\@Params_name=$name\n";


Personally, I don't like using all uppercase filehandles and I prefer (and I believe it's best practice) to use braces arount the filehandle.


Code
print {$fh} "\@Params_name=$name\n";



(This post was edited by FishMonger on Feb 7, 2013, 11:19 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Feb 7, 2013, 11:17 AM
Post edited by FishMonger (Veteran) on Feb 7, 2013, 11:19 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