Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by topher (Scribe)
on Jan 17, 2013 at 00:14 UTC ( #1013665=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open( my $fh, "<", $array_ip_list )
      or send_mail("ip_list_error"),
    ...
        # [ Clean up after ourselves, delete our temp file, etc. ]
        die "Something went wrong.";
    }
    
  2. or download this
    # Expects at least 1 argument matching the type of e-mail to send, and
    # optionally the additional arguments it might need.  If this got much
    ...
        # This will send our e-mail, regardless of which one we built.
        $msg->send;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2015-07-28 20:30 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 (258 votes), past polls