in reply to Re^3: Config::Tiny Module
in thread Config::Tiny Module

Sorry - I should have been much clearer.

Setting the variable in the same file works fine. Posting it from another form doesn't.

Replies are listed 'Best First'.
Re^5: Config::Tiny Module
by Eliya (Vicar) on Mar 29, 2011 at 21:27 UTC

    Not sure I understand — what same file, what other form?

    You have a CGI script that receives a parameter named "newvalue" via HTTP from a form.  You said "If I print the value its fine", which means the CGI script is apparently receiving the parameter as intended.  Also, you seem to be able to update the config file in principle (as you implied above) — but maybe not from the CGI script...(?).

    In other words, what remains as a possible problem is my original suspicion that the CGI/webserver user might not be allowed to write...  So, have you checked the permissions?

    Or, put differently, is your problem that the file isn't being updated at all, or that the file is updated but the modified value is not what you think it should be?