Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper qw(Dumper);
    
    ...
    sub handle_it {
      print Dumper \@_;
    }
    
  2. or download this
    die "foo";    # prints as "foo at script line whatever\n" - stringifie
    +d
    #die "foo", "foo";  # stringified - same as above but with "foofoo"
    #die {hi => 'there'};  # not stringified - shows correctly as a hashre
    +f
    #die 'foo',{hi => 'there'}; # stringified "fooHASH{whatever}"
    #warn {hi => 'there'};  # always stringified
    
  3. or download this
    die "Something happend", {extra_argument_to_show_pretty_error => 1};