The problem is this: As the script reads the HTML file & finds $var, I want it to print the content of $var. I don't want it to actually print "$var". Any suggestions?sub DisplayHTML() { $HTMLFileName = @_[0]; open(HTMLFNH,"<$HTMLFileName") || die "Can't open file"; print "Content-type: text/html\n\n"; while ($HTMLLine=<HTMLFNH>) { chomp $HTMLLine; print "$HTMLLine\n"; } close(HTMLFNH); } return 1;
In reply to Display $var content by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |