Otherwise, if you were to use "html.pl", you could add a subroutine to html.pl along the lines of:
open(FILE, "<file.htm");
$File = <FILE>;
close(FILE);
return $File;
}
Then you could call it as you would any other subroutine:
&InsertFile;
Remember to close any print qq statements before you make that call though.
ie.
&InsertFile;
print qq~ This is the text after~;
--Cade
[This message has been edited by Cade (edited July 23, 1999).]
Code:
sub InsertFile { open(FILE, "<file.htm");
$File = <FILE>;
close(FILE);
return $File;
}
Then you could call it as you would any other subroutine:
&InsertFile;
Remember to close any print qq statements before you make that call though.
ie.
Code:
print qq~ This is the text before.~; &InsertFile;
print qq~ This is the text after~;
--Cade
[This message has been edited by Cade (edited July 23, 1999).]