Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: writing a config file from a html form

by rodion (Chaplain)
on Feb 25, 2007 at 23:16 UTC ( [id://602060]=note: print w/replies, xml ) Need Help??


in reply to writing a config file from a html form

I'm having a little trouble telling what's going on from the code you posted. I don't know the purpose of "FH", "SERVICES" or "$c", but I'm guessing that this bit of code is for updating your config file. The use of "$.", the input line number, as part of a hash key makes me think you might be storing or updating information in the config file based on line number, and that could be a source of your problem. If my guess is right, and your rolling your own config file updates this way, I suggest looking at CPAN:Config::Simple. Scroll down to the headings on "SAVING/WRITING CONFIGURATION FILES", "CREATING CONFIGURATION FILES" and "MULTIPLE VALUES" and I think you might find that the package does just what you want. Good luck with your project.
  • Comment on Re: writing a config file from a html form

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://602060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-16 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found