thevoid has asked for the wisdom of the Perl Monks concerning the following question:
which will work fine when fatalsToBrowser is not enabled, but when it is I get this erroruse warnings; use strict; use CGI::Carp qw(fatalsToBrowser); my $cgi = CGI->new(); print $cgi->header(), $cgi->start_html(), $cgi->start_form({ -action => "http://example.com/favourites.html", -method => "get", }); print $cgi->p('What is your favourite colour? <input type="text" name="colour" /><br/> What is your favourite food? <input type="text" name="food" /><br/> <input type="submit" '), $cgi->end_form, $cgi->end_html();
Can't locate object method "new" via package "CGI" at...
I do know about perldoc and the perl faq, have had a look at perltoot but am still not really sure... hoping someone will be able to easily explain this error to me. Thanks ; )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI Error
by stonecolddevin (Parson) on Mar 01, 2007 at 20:30 UTC | |
by thevoid (Scribe) on Mar 01, 2007 at 20:38 UTC | |
by stonecolddevin (Parson) on Mar 02, 2007 at 15:56 UTC | |
|
Re: CGI Error
by scorpio17 (Canon) on Mar 02, 2007 at 14:56 UTC |