in reply to Creating HTML page

Also, close ($outname); is incorrect in Perl, you should use the handle, as in your original post. I also suggest you use print rather than printf, it is supposed to be more efficient.

However, I cannot see any reason why the file would fail to be created and no error reported. Double check your error checking. As a last resort run strace on the script:
strace -o strace.out perl myscript.pl
It will probably produce a lot of output in strace.out but sometimes gives information which is not obvious in a script.

Replies are listed 'Best First'.
Re^2: Creating HTML page
by ganilmohan (Acolyte) on Aug 05, 2008 at 10:53 UTC
    Oh nooo....lotss of errors when I added
    use strict;
    use warnings;
    to this script. Almost all the errors are Global symbol "$count" requires explicit package name at frame7.pl line 7.
      So, declare each of them when you first use them with my...
      my $outname = '...';


      Unless I state otherwise, all my code runs with strict and warnings