in reply to CGI.pm and JavaScript source file

Try -language => 'text/javascript' instead of -type => ....

Replies are listed 'Best First'.
Re^2: CGI.pm and JavaScript source file
by Erez (Priest) on Jun 04, 2008 at 06:31 UTC

    Try -language => 'text/javascript'

    I wouldn't, it's deprecated and not-supported in some browsers (read: Bad Practice).

    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphors.