Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

TinyMake module gives warning

by sam_bakki (Monk)
on Nov 12, 2010 at 10:01 UTC ( #871022=perlquestion: print w/ replies, xml ) Need Help??
sam_bakki has asked for the wisdom of the Perl Monks concerning the following question:

Hi ,

I am using ActivePerl v5.10.1 built for MSWin32-x86-multi-thread and TinyMake module http://search.cpan.org/~walterh/TinyMake-0.06/TinyMake.pm


I have enabled warnings in my code,
use strict; use warnings; use TinyMake ':all';

I get this error
TinyMake::show() called too early to check prototype at c:/Perl/site/lib/TinyMake.pm line 173.

I contact 'walterh@rocketmail.com' owner of this module but no reply

Any one have idea, how to fix it and make it available in CPAN?

Thanks </code>

Comment on TinyMake module gives warning
Download Code
Re: TinyMake module gives warning
by marto (Chancellor) on Nov 12, 2010 at 10:46 UTC

    "I contact 'walterh@rocketmail.com' owner of this module but no reply"

    Well this release is from 2005, perhaps the maintainer is no long around, or the email address is no longer active. It could be that this module worked on a previous version of perl (circa 2005), something has changed between then and v5.10.1 which is causing problems. It may If you want to fix this module examine line 173, and work back from there.

    Update: I tried your code as stated above on 5.8.8 and 5.12.2 and didn't get the error.

      Update: I tried your code as stated above on 5.8.8 and 5.12.2 and didn't get the error.

      In order to get the error, you need to enable warnings globally (e.g. #!/usr/bin/perl -w ), so they apply to the module, too.

Re: TinyMake module gives warning
by Anonymous Monk on Nov 12, 2010 at 11:05 UTC
    To work around the issue, modify TinyMake.pm

    sub show (@_); # <--- add this line sub show (@_){ # line 140, originaly ...
      Actually I don't think the sub prototype has any use at all here, nor did it do ever do anything useful in the past, so I'd just drop it.
      sub show { ... }
      Further down I can also see
      sub sh (@){
      which is similarly useless, so make that:
      sub sh {
      Thank you for all of your replies :) , I have solved the problem by placing  sub show (@_); at line 86. Regrads, Bakkiaraj
Re: TinyMake module gives warning
by moritz (Cardinal) on Nov 12, 2010 at 11:14 UTC

    Just a general comment: The "right" way to deal with module bugs is to report them to the CPAN RT. Each CPAN module automatically gets a queue there, for example rt://TinyMake.

    It probably won't help you in this case, since the maintainer seems unavailable, but maybe somebody else find the motivation and time to make a patch for it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2014-07-25 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (171 votes), past polls