Help for this page

Select Code to Download


  1. or download this
    # Perl >= 5.10
    my $pid=fork() // die "Can't fork: $!";
    ...
    #                                      12345
    # just 5 extra characters - 10 less than manually
    # and no wrapper needed
    
  2. or download this
    sub def_or_die
    {
    ...
            die Carp::some_magic_helper_function($msg);
        });
    }
    
  3. or download this
    sub def_or_carp
    {
    ...
            Carp::carp($msg);
        });
    }
    
  4. or download this
    sub def_or_carp
    {
    ...
            }
        });
    }