Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Seeking guidance for more idiomatic way of (re)writing this script.

by wfsp (Abbot)
on Jan 17, 2013 at 19:21 UTC ( #1013862=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Seeking guidance for more idiomatic way of (re)writing this script.
in thread Seeking guidance for more idiomatic way of (re)writing this script.

topher++

I'd consider having

else { die "send_mail - bad type: $type\n" }
at the end.


Comment on Re^3: Seeking guidance for more idiomatic way of (re)writing this script.
Download Code
Replies are listed 'Best First'.
Re^4: Seeking guidance for more idiomatic way of (re)writing this script.
by topher (Scribe) on Jan 18, 2013 at 00:25 UTC

    Excellent suggestion; I should have thought to include something like that.

    I'll update the function to include it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-30 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls