in reply to unsetenv in perl

Additionally to what Corion said, if you want to only remove the environment variable for the script itself, and for sub processes that your script launches, you can use use delete $ENV{ARCH}.

See also: %ENV.