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

TinyMake module gives warning

by sam_bakki (Pilgrim)
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

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/ line 173.

I contact '' owner of this module but no reply

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

Thanks </code>

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

Re: TinyMake module gives warning
by marto (Bishop) on Nov 12, 2010 at 10:46 UTC

    "I contact '' 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

    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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871022]
Approved by moritz
[erix]: maybe you used the car routes, I used the walking routes
[Eily]: there's a rivalry between the two cities, so defining one in terms of the other might not be well received
[Eily]: erix well I did click on the walking icon
LanX giggles!
[LanX]: Eily I'm duing this constantly with people from rival cities ...MUCHO fun!
[Eily]: The best example of that is the TGV, they couldn't decide who would get it so it's in the middle of nowhere halfway between the two
[LanX]: Eily: that rings a bell
[erix]: interesting difference, I suppose they use different data/routes (and shorter seems better, no?)
[LanX]: Montabaur station
[erix]: (I used http://afstandmete )

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-12-13 15:24 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (369 votes). Check out past polls.