Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Params::Validate - a powerful tool for robust subroutine design

by santonegro (Scribe)
on Jan 22, 2006 at 01:21 UTC ( [id://524718]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub greet {
          my ($name, $age) = @_;
    ...
          print "Hello, there $name. How does it feel to be $age?\n";
        }
    
  2. or download this
        use Params::Validate qw(:all);
        sub greet {
    ...
        print "Hello, there $name. How does it feel to be $age?\n";
    
  3. or download this
     sub HTML::Element::iter2 {
    
    ...
                },
          # output debug info? by default, no
          debug => {default => 0}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found