http://qs321.pair.com?node_id=1167794


in reply to setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file

I am not sure this is the best way, but you can run yourself again:

BEGIN{ unless (defined $ENV{APPLEJACK}){ my $cmd = "env APPLEJACK=TRUEBLUE $^X $0"; print "Running exec $cmd\n"; exec($cmd, @ARGV); exit 0; }else{ print "APPLEJACK already defined\n"; } } print "STARTING " . $ENV{APPLEJACK} . "\n";