Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl Monk, Perl Meditation
 
PerlMonks  

Oddity whith CGI+eval

by idle (Friar)
on Nov 03, 2006 at 08:02 UTC ( [id://582070]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

idle has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks.
I have recently move some script from old system to new one, and noticed strange thing:
my $q=CGI->new(); print $q->start_form;
Produce me warning, among the normal output:
Use of uninitialized value in concatenation (.) or string at (eval 7) +line 15
It appear due to start_form, but refer to eval.
Happens only on Perl 5.8.8+CGI 3.15/3.10(BSD and Win), at least, as I may investigate.
Whats wrong here?

Replies are listed 'Best First'.
Re: Oddity whith CGI+eval
by imp (Priest) on Nov 03, 2006 at 08:31 UTC
    Please provide a minimal working example that demonstrates the problem in your environment.

    If you aren't sure what code is relevant, start with the line number that was reported as having the error. The error message you reported said line 15, but we have no way of knowing what happened before that line.

    Many times you will find that when you reduce the script to the smallest segment that still produces the error, the cause of the error becomes obvious.

    Note that sometimes the reported line number is misleading, which is often the case when the issue is a missing (or extra) curly bracket, quote, or semi-colon. In those cases you need to iteratively reduce the code until the error no longer occurs, then backstep to see what block contained the error.

      I did provide minimal working example.
      fenLisesi of course did it better.
      Thanks all.
Re: Oddity whith CGI+eval
by fenLisesi (Priest) on Nov 03, 2006 at 08:38 UTC
    Please see this bug report that I filed in August. It was (going to be) fixed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://582070]
Approved by imp
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.