Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: wishlist: die-on-failure for built-ins

by Mabooka-Mabooka (Sexton)
on Apr 19, 2005 at 04:21 UTC ( [id://449107] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for each dir ( dirs) # I am using pseudo-code...:-)
      => if chdir(dir)
    ...
      => else
       ==> print_warning(couldn't go to dir, skipping)
    ......
    
  2. or download this
    die unless chdir($dir);
    
  3. or download this
     if kind($matter) == "solid" {
       dig_it($matter); }
    ...
      die "We don't support underwater activities yet"; }
     else {
       die "RTErr: Unexpected type of matter!";}