I wrote a small .pl file and started it in the dos command with
[code]
perl c:progra~1apache~1apachehtdocseigenepart2.pl
[/code]
I got what I expected
BUT if I want to view the file in a browser I type the folowing into the adress bar
[code]
http://localhost/eigene/part2.pl[/code]
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]
Firestorm
blue_surfer2000@yahoo.de
;-)
Comments
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.
Manish
http://www.manishmalik.com
Check out Internet Development forum at ProgrammersHeaven.com