Help for this page

Select Code to Download


  1. or download this
    
    if(exists($foo{bar}) and exists($foo{bar}{baz})) {
      print "\$foo{bar}{baz} exists\n";
    }
    
  2. or download this
    my @levels = qw/bar baz/; 
    foreach(@levels) {
    ...
    if (eval $code) {
     #do whatever
    }