http://www.perlmonks.org?node_id=338179


in reply to Fastest Rising Monks - Revisited

Umm... I feel like I'm a little stupid on this one.. I'm getting the following:

Prototype mismatch: sub main::head vs ($) at pmstats line 8

So, I did a little research, and found a cpan doc on just this problem (a namespace issue w/ CGI).

So, am I the only one that's getting this, or did everyone else know how to fix it right away and not say anything? I'm kinda off-balance, 'cause I know L~R's stuff is good and works.

Wondering...

Replies are listed 'Best First'.
Re: Re: Fastest Rising Monks - Revisited
by Limbic~Region (Chancellor) on Mar 20, 2004 at 00:44 UTC
    pboin,
    Thanks for the vote of confidence in my abilities, though I would run far far away from any code I wrote ;-)

    The warning can safely be ignored as the code still functions. I eventually found the cause the long way, but didn't have time to find/test a fix. Is the code not working for you or were you just concerned about the warning? If you want to play around, the document you referenced says to do:

    #use LWP::Simple; use LWP::Simple '!head';
    Cheers - L~R