Thread
:
Perl Error Handling
View Single Post
Aug 18th, 2005, 10:14 AM
#
2
skuinders
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power:
4
if block?
assuming $sock is boolean
(
Toggle Plain Text
)
if (!$sock) { warn ("print something"); logfunction (logError); }
if (!$sock) { warn ("print something"); logfunction (logError); }
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell
http://web.bryant.edu/~srk2
skuinders
View Public Profile
Visit skuinders's homepage!
Find More Posts by skuinders