in reply to Where does LOG_FILE get created with following code ?

It is impossible to say as a variable is a variable and it can be anything at all

chances are any filenames coming from "$cgi" could even be malicious

if you want to know what the filename is use Data::Dump to dumper it out ... then switch to using 3 argument open with a washed/validated filename

this and many more tips in the checklists :) Basic debugging checklist , brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts

  • Comment on Re: Where does LOG_FILE get created with following code ? (ddumper)