Re: How to eliminate the bareword error You need to quote the sss and ttt
use strict;
use warnings;
my $x=param("hhh");
my $y=param("sss");
my $z=param("ttt");

Yaron Kahanovitch
----- Original Message -----
From: "sivasakthi" 
To: beginners@perl.org
Sent: Thursday, May 3, 2007 12:30:03 PM (GMT+0200) Auto-Detected
Subject: How to eliminate the bareword error

Hi Users,

I have used following code,

#!/usr/bin/perl
use strict;
use warnings;
my $x=param("hhh");
my $y=param(sss);
my $z=param(ttt);

It shows the following error:

Bareword "sss" not allowed while "strict subs" in use at aaa.cgi line
16.
Bareword "ttt" not allowed while "strict subs" in use at aaa.cgi line
17.
Execution of aaa.cgi aborted due to compilation errors.

Could you help me to solve the problem??

Thanks
Siva


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/




-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


