Why are .pl interpreted the wrong way

I wrote a small .pl file and started it in the dos command with
perl c:progra~1apache~1apachehtdocseigenepart2.pl
I got what I expected
BUT if I want to view the file in a browser I type the folowing into the adress bar
and I don't only see the text which should be printed bit also all comments and declarations (the whole code!)

[red]What have I done wrong?[/red]



  • I think this is because IE does not know how to open/run .PL files, so it is opening the script files as a text file and displaying it. See documentation at www.activestate.com to configure your Perl interpreter to work with IE.

    See the webserver docs or your Perl Interpreter docs on how to associate .pl files with your perl interpreter program.



    Check out Internet Development forum at ProgrammersHeaven.com

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion