> open(JAVASCRIPT, "javascript.js");
> while(<JAVASCRIPT>){print $_}
> close(JAVASCRIPT);

that's wasteful, HTML already has the

<script src='wherever it tis'></script>

tag attribute. 


-- 
justin simoni                                        http://skazat.com
______________________________________________________________________
Steven Wright:
"Uh-Oh, I've lost a button-hole"

More:
http://quotes.prolix.nu





on 6/12/01 3:15 PM, WebMaster AIM-US at [EMAIL PROTECTED] wrote:

> Another option is to put the JavaScript in the text file, and have Perl
> read from that file, and print it directly.  This means you can re-use the
> JavaScript code in other similar script without needing to edit each script
> when the JavaScript need changing:
> 
> open(JAVASCRIPT, "javascript.js");
> while(<JAVASCRIPT>){print $_}
> close(JAVASCRIPT);
> 
> Stephen
> 
> 
> ______________________________ Reply Separator
> _________________________________
> Subject: javascript within print "<<tag"
> Author:  <[EMAIL PROTECTED]> at Internet
> Date:    6/12/2001 3:41 PM
> 
> 
> i have a script that generates html. i would like to put some javascript in
> the 
> <head></head> tags which is being generated, but escaping the javascript is a
> nightmare.
> does the print "<<tag" allow you to enter all this tedious code without
> escaping?
> if not, do i have another choice to get around this?
> 
> thanks -cjm
> 
> 

Reply via email to