Re: How to eliminate the bareword error

2007-05-03 Thread Chas Owens
On 5/3/07, Chas Owens <[EMAIL PROTECTED]> wrote: snip Where you expecting $y to have a value? If so, then there is a snip That should be "Were"; I should not post before I have had caffeine. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

Re: How to eliminate the bareword error

2007-05-03 Thread Chas Owens
On 5/3/07, sivasakthi <[EMAIL PROTECTED]> wrote: I have used your suggestions, but it shows the following error, Use of uninitialized value in string eq at aaa.cgi line 26, line 1 line 1 contains: #! /usr/bin/perl .. line 26 contains: if($y eq "somestring")

Re: How to eliminate the bareword error

2007-05-03 Thread Jeff Pang
2007/5/3, sivasakthi <[EMAIL PROTECTED]>: I have used your suggestions, but it shows the following error, Use of uninitialized value in string eq at aaa.cgi line 26, line 1 line 1 contains: #! /usr/bin/perl .. line 26 contains: if($y eq "somestring") This is because $y d

Re: How to eliminate the bareword error

2007-05-03 Thread sivasakthi
I have used your suggestions, but it shows the following error, Use of uninitialized value in string eq at aaa.cgi line 26, line 1 line 1 contains: #! /usr/bin/perl .. line 26 contains: if($y eq "somestring") {

Re: How to eliminate the bareword error

2007-05-03 Thread Jeff Pang
2007/5/3, sivasakthi <[EMAIL PROTECTED]>: I need to use the Post method for "x" variable and Get method for "y" & "z" variable. For that what i do?? As I've said,just say, use CGI qw/:standard/; This would import "param" routine from CGI.pm and you could use it directly for both POST and GET

Re: How to eliminate the bareword error

2007-05-03 Thread sivasakthi
I need to use the Post method for "x" variable and Get method for "y" & "z" variable. For that what i do?? Thanks, Siva On Thu, 2007-05-03 at 05:33 -0400, [EMAIL PROTECTED] wrote: > You need to quote the sss and ttt > use strict; > use warnings; > my $x=param("hhh"); > my $y=param("sss"); > my $z

Re: How to eliminate the bareword error

2007-05-03 Thread Jeff Pang
2007/5/3, sivasakthi <[EMAIL PROTECTED]>: 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); Mmmn,I think you would write them as, use strict; use warnings; use CGI qw/:standard/; my $x = param('hhh'); my

Re: How to eliminate the bareword error

2007-05-03 Thread yaron
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" <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Thursday, May 3, 2007 12:30:03 PM (GMT+0200) Auto-Detected Subj