{ open local(*STDERR), '>> /var/log/mylog.log' or die 'Gah! ', $!; # or die 'Gah! ', $/; # Oops, typo # do stuff }