marky1124 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am looking for some wisdom to understand what to do regarding a prototype mismatch between a couple of modules that I need to use.
This is the code
#!/usr/bin/perl -w use strict; use CGI::Fast qw(:standard); #use CGI::Fast; use URI::URL; my $key = param('key');
Running this gives the following
Prototype mismatch: sub main::url: none vs ($;$) at /usr/share/perl/5.10/Exporter.pm line 67. at /tmp/try.pl line 6
I can get rid of the Prototype mismatch message if I change to 'use CGI::Fast;' but then the code reports 'Undefined subroutine &main::param called at /tmp/try.pl line 8.'
I have the latest versions of these modules from CPAN (URI::URL v5.04 and CGI::Fast v1.09)
I'm unsure how to resolve this, I look forward to basking in your wisdom
All the best
Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Resolving Prototype mismatch
by Anonymous Monk on Aug 09, 2012 at 10:53 UTC | |
by marky1124 (Novice) on Aug 09, 2012 at 11:40 UTC | |
by tobyink (Canon) on Aug 09, 2012 at 11:50 UTC | |
by marky1124 (Novice) on Aug 09, 2012 at 11:59 UTC | |
by Anonymous Monk on Aug 09, 2012 at 12:05 UTC | |
| |
by Anonymous Monk on Aug 09, 2012 at 11:56 UTC | |
by marky1124 (Novice) on Aug 09, 2012 at 13:45 UTC |