For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2006 > 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 tracing "Subroutine ** redefined at " warnings
Ramprasad A Padmanabhan

2006-10-20, 7:57 am

I am getting warnings like ( when I run perl -wc )

Subroutine foo redefined at bar.pm.
I am sure these functions are not redefined anywhere. 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


Thanks
Ram
Mumia W.

2006-10-20, 6:56 pm

On 10/20/2006 06:35 AM, Rampra A Padmanabhan wrote:
> I am getting warnings like ( when I run perl -wc )
>
> Subroutine foo redefined at bar.pm.
> I am sure these functions are not redefined anywhere. 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
>
>
> Thanks
> Ram
>


If you load a perl module with do (do 'mymodule.pm') rather than use
(use mymodule) then this can happen.

Look into the Carp module.

Sponsored Links







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

Copyright 2008 codecomments.com