Then you can use it like this:sub insert_file { my $file = shift; my $path = "/home/www/artoflivingdelhi.org/$file"; unless (open(F, "<", $path)) { warn "insert_file: open of $path failed: $!"; print "<!-- insert_file: open of $path failed: $! -->\n"; } else { while (<F>) { print $_, "\n"; } # just copying what you have close(F); } }
With all of your files being inserted by the same code, you'll find bugs much more quickly. Doing just this might fix your current problem, and if no files get inserted, then you know the problem is in the insert_file routine.use strict; use warnings; use CGI qw(:standard); ... print header(); ... insert_file("frame.txt"); ... insert_file("local_frame_left.txt"); ...
In reply to Re: why is the content of frame.txt file not displaying
by pc88mxer
in thread why is the content of frame.txt file not displaying
by ketaki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |