
mckhendry
Deleted
Oct 9, 2000, 8:04 AM
Post #1 of 3
(1804 views)
|
file handles and here documents
|
Can't Post
|
|
Hey all, this is a small example of what I am trying to do: #!/usr/bin/perl -w use strict; use Symbol; my $fh = gensym; oneOfManySubroutines($fh); sub oneOfManySubroutines { open $_[0], ">mckhendry.html"; print $_[0] <<HTML; <html> --much stuff-- </html> HTML close $_[0]; } If anyone could help me with why I am having trouble printing a here document to a file handle, I would be greatly appreciated. Thanks, mckhendry
|