http://www.perlmonks.org?node_id=222256


in reply to Math::SnapTo

package Math::SnapTo; #use strict; # used in testing but not forced on you #use warnings;

Do you realize that strict is a lexical pragma, and therefore only affects the package Math::SnapTo? :-)

Replies are listed 'Best First'.
Re: Re: Math::SnapTo
by tachyon (Chancellor) on Dec 26, 2002 at 01:28 UTC

    Suprisingly I do. Strict has an overhead (needs to be loaded as does warnings). For testing I use them but they offer little benefit in a module which should be fully tested and strict and warnings compliant (which this is), If you want strict and warnings operational put it in your code and they will then be operational on the imported functions. The forced on you comment refers to the overhead not the scope.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print