in reply to Passing command-line arguments to a file

open STDOUT,">sample.html";