in reply to Re^3: Automatic generation of textfiles
in thread Automatic generation of textfiles

The example he gave was using shell redirection to capture the output of his script. And even so, it's overkill to spawn another shell when a simple { open( my $fh, ">", $newfile ) or die "open $newfile: $!\n" } would suffice.