Problem No. 1 -- you commented out 'use strict'.
Problem No. 2 -- you commented out 'use warnings'.
Had then been turned on, they would have told you about your incorrect
Perl syntax. As Dave Tang so correctly pointed out, Perl is NOT
JavaScript.
There is a quote from M. J. Dominus floating
On Tue, 06 Oct 2009 11:57:53 +1000, Jyoti wrote:
Hello All,
Can anyone please help with one small error I am getting for line 16( The
one which is bold n italic below.)
The error is : Can't call method "str" on an undefined value at
firstpage.pl
line 16.
Just a warning, I am also a beginn
Hello All,
Can anyone please help with one small error I am getting for line 16( The
one which is bold n italic below.)
The error is : Can't call method "str" on an undefined value at firstpage.pl
line 16.
#!/usr/bin/perl
# standard settings plus call for CGI package
#use strict;
#use warnings;
#!/usr/bin/perl
#Cambiar la linea anterior para que corresponsa a su sistema
#ejecutando "which perl" le dice conde esta el ejecutable
unshift (@INC, $ENV{'W2H_POSTPROCESS_PATH'});
require "XXX_cfg.pl"; # config file
$database="test";
# Open input and output files */
open(INFILE,"<$ARGV[0]");