SPUG: Clearing a variable in a package

Brian Hatch bri at ifokr.org
Thu Aug 19 05:19:31 CDT 2004



> Just wondering why you want to reset Package::errstr
> with every call...
> 
> Is there some reason you can't use errno's paradigm:
> the error string is meaningful only if the method/sub's
> return signals that an error has occurred. 

I'd agree entirely with this - if it's good enough
for POSIX, it's good enough for Perl.

-- 
Brian Hatch                  A pessimist's blood
   Systems and                type is always b-negative.
   Security Engineer
http://www.ifokr.org/bri/

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.pm.org/pipermail/spug-list/attachments/20040819/898a3f15/attachment.bin


More information about the spug-list mailing list