Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Oddity whith CGI+eval

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

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 fenLisesi (Priest) on Nov 03, 2006 at 13:38 UTC
    Please see this bug report that I filed in August. It was (going to be) fixed.
Re: Oddity whith CGI+eval
by imp (Priest) on Nov 03, 2006 at 13: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.

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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found