in reply to Multiple script tags?

Pass -script an array reference. Something like this? I assume this does what you want it to do.

print start_html(-script => [ 'js1', 'js2' ]);
Hope that helps.
Brad

Replies are listed 'Best First'.
Re: Re: Multiple script tags?
by peschkaj (Pilgrim) on Oct 14, 2003 at 16:09 UTC

    Thanks, this seems to do the trick:

    print $q->start_html( -script=>[ { 'language'=>"javascript", 'type'=>"text/javascript", 'src'=>"png.js" }, { 'language'=>"javascript", 'type'=>"text/javascript", 'src'=>"mailForm.js" } ] );
      Just a little TIMTOWTDI on a Tuesday afternoon:
      print $q->start_html( -script => [ map { language => 'javascript', type => 'text/javascript', src => $_, }, qw(png.js mailForm.js) ] );

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)