N
Nick Wedd
I have an html page, which I want to generate from a cgi script. I have
tried to do this by putting the entire html into a script like this:
#!/usr/bin/perl -w
print <<Whole_file;
<html>
<head>
.... all the rest of the html ....
</body>
</html>
Whole_file
This almost works. But my html includes some javascript, which includes
some escape sequences, some of which get expanded by this process. It
expands each "\n" in my javascript into "
", which I can live with. But it also expands
pattern = /\[([^)]+)/;
to
pattern = /[([^)]+)/;
although it does not expand
pattern = /\[([^(]*)\(([^)]*)\)([^]]*)/;
Is there a recommended way of getting round this? Ideally, I would like
it to leave all the html as it is.
Nick
tried to do this by putting the entire html into a script like this:
#!/usr/bin/perl -w
print <<Whole_file;
<html>
<head>
.... all the rest of the html ....
</body>
</html>
Whole_file
This almost works. But my html includes some javascript, which includes
some escape sequences, some of which get expanded by this process. It
expands each "\n" in my javascript into "
", which I can live with. But it also expands
pattern = /\[([^)]+)/;
to
pattern = /[([^)]+)/;
although it does not expand
pattern = /\[([^(]*)\(([^)]*)\)([^]]*)/;
Is there a recommended way of getting round this? Ideally, I would like
it to leave all the html as it is.
Nick