Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Prototype mismatch: sub B::OP::size: none vs () at

by Booger (Pilgrim)
on Mar 07, 2006 at 20:17 UTC ( #535022=perlquestion: print w/ replies, xml ) Need Help??
Booger has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks:

I've googled for the following error that I am receiving but haven't across anything useful.

I'm attempting to measure the memory usage of subroutines in a Apache/mod_perl 1.29 application.

My Apache configuration includes the following:

  <Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache::Status
    order deny,allow
    #deny from all
    #allow from ...
  </Location>

  PerlSetVar StatusOptionsAll On
  PerlSetVar StatusTerse On
  PerlSetVar StatusTerseSize On
  PerlSetVar StatusTerseSizeMainSummary On

  PerlModule B::TerseSize

After including these directives in my Apache configuration I started Apache up via httpd -X and discovered the following error:

Prototype mismatch: sub B::OP::size: none vs () at 
/home/madams/XpanceNET/dist/lib/perl5/site_perl/5.8.6/i686-linux/B/Size.pm line 24.

Does anyone have any idea why I might be getting this error, what it means and and what I can do to resolve it?

Any suggestions or ideas would be greatly appreciated!

Thanks in advance,

Matt

Comment on Prototype mismatch: sub B::OP::size: none vs () at
Re: Prototype mismatch: sub B::OP::size: none vs () at
by japhy (Canon) on Mar 07, 2006 at 20:39 UTC
    It's nothing you can really help and can be ignored by you. It has to do with a function being declared with an empty prototype (e.g. sub foo () {...}) and another with no prototype (e.g. sub bar {...}) and then having the prototyped one become an alias to the unprototyped one:
    sub foo () { return "foo\n" } sub bar { return "bar\n" } *foo = \&bar;

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
Re: Prototype mismatch: sub B::OP::size: none vs () at
by QM (Vicar) on Mar 07, 2006 at 22:21 UTC
    If you want to get rid of the warning, you can use:
    no warnings qw(syntax);
    I hope there's a more specific form for "prototype", but I can't make out the docs past "syntax". (I'm not sure if you want to do this inside a block, or for the whole script. See warnings for more info.)

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://535022]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2014-08-22 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (156 votes), past polls