Help for this page

Select Code to Download


  1. or download this
    eval 1/0 # compile-time error
    
  2. or download this
    my $d= 0;
    eval 1/$d;
    
  3. or download this
    my $code;
    my $ok= eval sprintf q{
    ...
        my $err= $@;
        warn "Runtime error on $string: $err";
    };