WebMaster AIM-US <[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);
A more concise way is:
open(JAVASCRIPT, "javascript.js");
print <JAVASCRIPT>;
close(JAVASCRIPT);
Vinicius
- javascript within print "<<tag" charles
- Re: javascript within print "<<tag&q... Justin Simoni
- Re: javascript within print "<<tag&q... Luinrandir Hernson
- Re: javascript within print "<<tag&q... WebMaster AIM-US
- RE: javascript within print "<<t... Vinicius Jose Latorre
- RE: javascript within print "<<tag&q... Tillema, Glenn
- RE: javascript within print "<<t... Curtis Poe
- Re: javascript within print "<<tag&q... Justin Simoni
- RE: javascript within print "<<tag&q... Tillema, Glenn
- RE: javascript within print "<<tag&q... Curtis Poe
- RE: javascript within print "<<t... Curtis Poe
- RE: javascript within print "<<tag&q... Tillema, Glenn
