sub bail_out { require Carp; Carp::confess(@_); } #### package Cwd; sub cwd; package main; # or whatever module you are in ...