in reply to Re^2: Creating HTML page
in thread Creating HTML page

Others have mentioned your open should be using or, not ||.

You seem to have lost the leading / from $outname. You should be using:

my $outname = '/usr/anil/scripts/myhtml.html'; open HTML, '>', $outname or die "Couldn't create '$outname': $!";

If that still doesn't work, tell us what the error message is.

Why aren't you using strict and warnings? Always start your Perl programs with

#!/usr/bin/perl use strict; use warnings;


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