[Melbourne-pm] $a $b $c

David Dick david_dick at iprimus.com.au
Fri Aug 13 22:30:58 CDT 2004


try

no warnings
#
# bad code here..
#
use warnings

Tim Connors wrote:
> On Sat, 14 Aug 2004, Sisyphus wrote:
> 
> 
>>Tim Connors wrote:
>>
>>>On Fri, 13 Aug 2004, Joshua Goodall wrote:
>>>log10, if I have my own "sub log10" in mycommon.pm, in @EXPORT, then perl
>>>complains about log10 being redefined.
>>>
>>
>>Hmmm .... there's no such problem with a module that defines and exports
>>a 'log10' subroutine on *my* perl.
>>
>>Are you sure you haven't defined the sub twice in 'mycommon.pm' ?
> 
> 
> Quadruple checked.
> 
> And furthermore, it seems to only fail on my 5.8.0 perl installation at
> work, but not my perl 5.8.4 here. Damn.
> 
> Looks like I am going to have to do an ugly workaround until I can get the
> sysadmins to upgrade perl (not likely, since we use a stupid distribution
> that doesn't have the concept of upgrades without reinstalling everything)
> 
> How do you temporarily turns warnings off around a block of code?
> 


More information about the Melbourne-pm mailing list