--- "Dr.Ruud" <[EMAIL PROTECTED]> wrote:

> chen li schreef:
> 
> >  my $name=$query_obj->param('text_field');
> >  print $query_obj->p,"This is your name $name",
> > "\n\n";  #line31
> > [...]
> > Use of uninitialized value in concatenation (.) or
> > string at cgi_7.pl line 31.
> 
>    my $name = ($query_obj->param('text_field') or
> 'Joe?');
> 
> -- 
> Affijn, Ruud
> 
> "Gewoon is een tijger."
> 
> 
Dear Dr. Ruud,

     Thanks it works. I change this line into:  

 my $name = ($query_obj->param('text_field') or ' ');

But I am not sure why I need to add the (or '').  I
see nowhere in CGI.pm talking about it. Can you
explain it in a liitle bit detail? Also what am I
supposed to do if I want results not to appear on the
same page as those in the form page?

Thanks,

Li 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to