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

Re: Review of my script

by NetWallah (Canon)
on May 16, 2013 at 04:06 UTC ( [id://1033763]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %params=(
      host => (TYPE=>"s", REQUIRED=>1, VALUE=>undef,
    ...
      password =>  (TYPE=>"s", REQUIRED=>1, VALUE=>undef),
    
    );
    
  2. or download this
    GetOptions(
       map { "$_=$params{$_}{TYPE}" => \$params{$_}{VALUE}  } keys %params
    ...
      showUsage("Missing required parameter $_") if $params{$_}{REQUIRED} 
    +&& ! $params{$_}{VALUE};
      $params{$_}{VALIDATE}->($params{$_}{VALUE})  if   $params{$_}{VALIDA
    +TE};
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-18 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found