Help for this page

Select Code to Download


  1. or download this
    package Undef;
    
    sub AUTOLOAD {
      undef;
    }
    
  2. or download this
    $text = ((
      $elt->first_child( 'subelt') || 'Undef'
      )->first_child( 'subsubelt')||'Undef'
      )->text();
    
  3. or download this
    # Takes an array of anon arrays of method calls, and
    # chains them.  Returns the first non-object of the end of
    ...
      my ($meth, @args) = @$last_call;
      return $obj->$meth(@args);
    }
    
  4. or download this
    $text = $elt->chain_meth(
      ["first_child", "subelt"], ["first_child", "subsubelt"], ["text"]
    );