[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Is this fun? What's going on?



>>>>> "Bill" == Bill Jones <bill@fccj.org> writes:

Bill> open IRECORD, "<Smry_TEST.html" or die "Ouch!  Stop $! $?";
Bill> open ORECORD, ">Smry_DONE.html" or die "Yowie, stop $! $?";

Using $? when you haven't had a recent child exit of your awareness
is likely to give you confusing die messages.  Not a good practice.

Neither is using $! when you haven't really had a system-call related
failure (although that doesn't apply here, since you did).

Don't add too much to your error messages.  The virtue of Laziness
does not apply to thinking about what's in the message.

Just another Perl Style Moment, :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe