[Bioperl-l] Windows whines... any thoughts?

Ewan Birney birney@ebi.ac.uk
Wed, 9 Oct 2002 08:26:48 +0100 (BST)


Inside Bioperl we make heavy use of function redefinition,
in particular interface (where the function body throws
an informative error) and implementation (where it does
something).


Windows Perl (I presume ActiveState, but not 100% sure
from Paul --- paul, I hope you will delurk for this) has
messages like:



Subroutine next_seq redefined at C:/Perl/site/lib/Bio\SeqIO\game.pm line
212.



Now- of course, nothing is wrong here, just that Windows perl is being
a little frisky in reporting this. Is there anything we can say
"pragma-ish" to windows Perl to stop this whining. A sort of (in
Bio::Root::RootI)

BEGIN {

    if( $on_windows ) {
        $Win32::Pragma::SubRoutineReDefine = 0; # shut up!
    }


};


otherwise newbies on windows are going to think they have done something
wrong...