in reply to Inserting javascript into perl script

To perl, it makes no difference whether it's emitting html or Javascript. So yes, any way to print the strings to STDOUT is OK. Here-docs are nice (see perldata). They allow you to easily embed multiline literal strings in you scripts. But actually, simple quoted strings can be multiline, too.
  • Comment on Re: Inserting javascript into perl script