Richard,
instead of a string you give -src an array. If CGI.pm was aware of
this it propably would produce HTML like this:
<script language="JavaScript"
src="/javascript/foo.js,/javascript/bar.js" ...>
and that's propably the reason why it is not aware of getting an array
instead of a string.
Solution:
Write a foreach loop which produces a <script ... > line for each
element of the array of strings which contains the names of the script files:
$html .= header();
$html .= start_html(
foreach $source (@array_of_sources) {
-script => {
-language => 'JavaScript',
-src => $source
};
};
);
...
Cheers
Stephan
--
Dipl.-Chem. Stephan Tinnemeyer
Lindenallee 20
24105 Kiel
Germany
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]