in reply to Re: SOAP::Lite and hashrefs
in thread SOAP::Lite and hashrefs

OK, so I now get the difference, but that brings up another question...

Trawling through SOAP::Lite, I see they use a local $^W to supress warnings, and use $^W to decide whether to warn or not.

Since $^W stays at 0 when "use warnings" pragma is used, is it fair to say that the weirdness is bad programming practice from the SOAP::Lite developer(s), or should I be using -w and "use warnings" and just let it go?

cLive ;-)

Replies are listed 'Best First'.
Re: Re:^2 SOAP::Lite and hashrefs
by Vautrin (Hermit) on Mar 23, 2004 at 00:30 UTC
    is it fair to say that the weirdness is bad programming practice from the SOAP::Lite developer(s),

    use warnings; is relatively new to Perl. Any modules that were created before it might not be completely rewritten to include it, and any modules written when it was new may not have used it in order to be backwards compatible with earlier versions of perl. So, it may be more of a kludge to make it work then bad programming


    Want to support the EFF and FSF by buying cool stuff? Click here.