Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: What Are The Rules For Subs And Modules When Fed Wrong Input

by tame1 (Pilgrim)
on Jul 22, 2002 at 04:08 UTC ( [id://183937]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($value,$error) = my_sub(input => 'who', inny => 'what');
    unless ($value) {
        my_abort ("There was an error: ",$error);
    }
    
  2. or download this
    sub my_sub {
        my %args = {
    ...
        }
        return($value,undef);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-18 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found