For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2006 > Re: tracing "Subroutine ** redefined at " warnings









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: tracing "Subroutine ** redefined at " warnings
Paul Lalli

2006-10-20, 7:57 am

Rampra A Padmanabhan wrote:
> I am getting warnings like ( when I run perl -wc )
>
> Subroutine foo redefined at bar.pm.


No, that is not what you get. What you get is a warning message that
includes the line number in addition to the file name.

> I am sure these functions are not redefined anywhere.


I am sure that they are. I trust the Perl compiler a heck of a lot
more than I trust your assurance. :-)

> I would like to trace the source of these warnings.
>
> How do I do this.
> BTW I am using perl 5.8.3 on linux


Not sure what you're asking. The warning message tells you on what
line the subroutine was redefined. What do you find on that line?

Can you post a short-but-complete script that demonstrates this error?

Paul Lalli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com