open my $fh, "| someotherprog.pl" or die $!; $ENV{FOO} = 'bar';