Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 ...

  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/ 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,


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

Replies are listed 'Best First'.
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 (Parson) 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.)

    Quantum Mechanics: The dreams stuff is made of

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://535022]
Approved by GrandFather
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2018-05-26 03:27 GMT
Find Nodes?
    Voting Booth?