Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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
[robby_dobby]: Likewise! I haven't seen a lot of people with HAs back where I come from, so I figured it might be the same around here too...
[robby_dobby]: Oh, shit -- I was replying to someone, but it wound up here. -_-
robby_dobby is still not used to PM's interface. /o\
[oiskuu]: War. War never changes.
[robby_dobby]: "My cat is a very good mouser" -- that's a great way to identify a Brit among a crowd :-)
thezip looks around to see no one else dancing to Piazzola...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2017-11-17 19:40 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.