Separate Javascript code from pure Perl code
Just save your JS code in separate .js files and load them as needed. Unless you specifically have to generate that code dynamically. I can hardly imagine such a situation.
In the past I've been the one "bashing" you for double posting here and in clpmisc with no mutual acknowledgement. (BTW: I won't have access to a proper news server and I find GG's UI to be too clunky for me.) Now I see you're including references when doing so: again, well done! Just bring the thingie one step further: when inserting a url like the above, it would be best not to put it in <code> tags, but to make it a proper link. There are many smart ways to do so in the Monastery. In this particular case I would have written something along the lines of
Please see this [http://groups.google.com/group/comp.lang.perl.misc/br +owse_thread/thread/4d2219139165592c/#|post] on clpmisc and suggest so +mething.
That renders as "Please see this post on clpmisc and suggest something."
I would also repeat the actual content of the linked to post, removing any reference to the original destination and adding PM-specific formatting to increase readability.
In reply to Re: Separate Javascript code from pure Perl code
by blazar
in thread Separate Javascipt code from pure Perl code
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |