BEGIN { if( ! $ENV{PDUPRE_RESTART}) { $ENV{LD_LIBRARY_PATH} = '...'; $ENV{PDUPRE_RESTART} = 1; exec $0, '--restarted', @ARGV }; }; ...