in reply to running a script from perl

I'm not exactly sure what you are trying to do, but you will
need to output an http header so the web page can be
displayed. I would suggest using CGI.pm as follows
#!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsTo Browser); my $page = new CGI; print $page->header() print $page->start_html(); ... .. . print $page->end_html();
Hope this helps, if not post a bit more of your code