in reply to Writing to a file which is external to cgi-bin directory

Are you sure that the quiz directory is two directories up from the current directory of apache? A quick google search seems to indicate that it isn't guaranteed that apache sets the current directory to the directory in which the script is

If in doubt, better use an absolute path i.e. chdir('c:/quiz');

Replies are listed 'Best First'.
Re^2: Writing to a file which is external to cgi-bin directory
by taemid (Initiate) on Jul 22, 2009 at 02:20 UTC
    Thanks for the replies from ikegami - yes I have added the code - seek(OUT, 0, SEEK_END); - instead of constants. Yes jethro - the quiz file is two levels up and located at "..\..\Quiz"

    After adding use strict; use warnings; as suggested by Old Gray Bear the error messege like - on unopened filehandle - appears.

    So where do I go from here ?