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

Error Handling Misconception

by Anonymous Monk
on Sep 03, 2003 at 22:04 UTC ( [id://288749]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $object = My::Class->new();
    while (my $value = $object->next_val() ) {
         # do cool stuff
         }
    
  2. or download this
    my $object = My::Class->new();
    while (my $value = eval { $object->next_val() } ) {
    ...
             }
         # do cool stuff
         }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://288749]
Approved by davido
Front-paged by Enlil
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found