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 ( #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
Node Status?
node history
Node Type: note [id://183937]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-04-09 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (47 votes). Check out past polls.

    Notices?