--- Henk van Ess <[EMAIL PROTECTED]> wrote: > I just uploaded this VERY simpele script, but whatever I try, it doesn't > work. I chmod'ed to 644,655,755,555,666 but it didn't run. What am I doing > wrong? > > #!/usr/bin/perl > > # Fig. 2.1: fig02_01.pl > > # A first program in Perl > > print "Welcome to Perl!\n"; # print greeting
A *simple* explanation would be to ensure that you print the header first (assuming that your shebang line points to the Perl interpreter and that you are running this as a CGI script: #!/usr/bin/perl use CGI qw/:standard/; print header( 'text/plain' ), "Welcome to Perl!"; exit; However, that response is a bunch of handwaving without really explaining what is going on. If you want more information, you can read through my CGI course at http://www.easystreet.com/~ovid/cgi_course. Lesson 1 demonstrates a very simple CGI script and Appendix 1 (which you might find more immediately valuable if my fix doesn't work for you) will tell you how to get your scripts running in the first place. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]