Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: checking values of variables

by Anonymous Monk
on Aug 13, 2013 at 12:27 UTC ( [id://1049267]=note: print w/replies, xml ) Need Help??


in reply to Re^2: checking values of variables
in thread checking values of variables

this question garnered a fair amount of interest and I appreciate the replies.

In what way (what did you decide)?

Replies are listed 'Best First'.
Re^4: checking values of variables
by Anonymous Monk on Aug 13, 2013 at 13:51 UTC
    I decided to stay with what I have (because the scalar variables are used all over the program and I didn't want to do a great deal of editing). However, next time I have this situation I will most likely use:
    for (qw / server database user password ... initversion /) { help() and last unless (defined $cfg->params($_) and $cfg->params +($_));
    and use $cfg->params(server) instead of $server Thanks to all (Perl Monks is fantastic!)
      however, this approach does not allow
      $mail_host = $cfg->param('mail_host') || 'mail@xxx.org'; $support_addr = $cfg->param('support_addr') || 'support@xxx.org' +;
      default values.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found