When I run summary.pl from the command line, I get the following message:

/local/www/htdocs/scripts/campus>nc_rpt_summary.pl Content-Type: text/html; charset=ISO-8859-1

Software error:

HTML::Template->new() : Cannot open included file nc_rpt.tmpl : file not found. 
at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1580 HTML::Template::_init_template
('HTML::Template=HASH(0x28a914)') called
at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1177 HTML::Template::_init
('HTML::Template=HASH(0x28a914)') called
at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1071 HTML::Template::new
('HTML::Template','filename','nc_rpt.tmpl',
'associate','CGI=HASH(0x1800ec)',

'global_vars',1) called
at .//nc_rpt_summary.pl line 56

For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.

Mon Dec 15 09:51:20 2003 nc_rpt_summary.pl: HTML::Template->new() :
Cannot open included file nc_rpt.tmpl : file not found. at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1580
Mon Dec 15 09:51:20 2003 nc_rpt_summary.pl: HTML::Template::_init_template('HTML::Template=HASH(0x28a914)') called
at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1177
Mon Dec 15 09:51:20 2003 nc_rpt_summary.pl: HTML::Template::_init('HTML::Template=HASH(0x28a914)') called at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1071
Mon Dec 15 09:51:20 2003 nc_rpt_summary.pl: HTML::Template::new('HTML::Template','filename','nc_rpt.tmpl','associate','CGI=HASH(0x1800ec)','global_vars',1) called at .//nc_rpt_summary.pl line 56

Lori update: added some breaks so the lines don't run across the page


In reply to Re: Re: How do I run .pl script from Unix command line, and pass CGI variables to it? by Lori713
in thread How do I run .pl script from Unix command line, and pass CGI variables to it? by Lori713

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.