> From: "Jim McCoy" <[EMAIL PROTECTED]>
> Subject: Re: Help identifying an error
>
> Yes, actually I am getting a line number.  But I thought I was getting 2
> unrelated messages.
[snip]
>
> Here is the script up to line 5:
> #!/usr/bin/perl -w
> use cgi qw(:standard);
> use strict;
> use diagnostics;
> print header;
>
>
> It seems to niot like the "print header;".
>
> Thanks for your help.
>

The problem is due to errors introduced while transcribing the module's
documented interface. There's an inherent risk associated with typing,
especially since case matters. You can't ignore that rather, you must
consider it. Copy/paste examples from the POD to eliminate these sorts of
problems.

c:> perldoc CGI
NAME
    CGI - Simple Common Gateway Interface Class

SYNOPSIS
      # CGI script that creates a fill-out form
      # and echoes back its values.

      use CGI qw/:standard/;
      print header,
'test';

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to