develooper Front page | perl.beginners | Postings from April 2002

Re: Brand New Perl Beginner - trouble using activePerl

Thread Previous | Thread Next
From:
Harry Jackson
Date:
April 30, 2002 14:36
Subject:
Re: Brand New Perl Beginner - trouble using activePerl
Message ID:
20020430202054.66139.qmail@web9802.mail.yahoo.com
> > From: 	Larry[SMTP:RANGOLEER@MSN.COM]

> > 
> Hey )))
> 
> I am learning perl now for use with CGI.
> 
> I installed active Perl on both windows Millenium AND windows XP
> systems.
> 
> Both of the fail to run a .pl file.  I see a window flash on the
> screen for a part of a second and then disappear.....the window looks
like it is
> a DOS
> command window.

This was the script running. Go to Start run and type "cmd" run it.
Then type the path name to the file you want to execute. This means
that STDOUT will be to the console screen and it will look as if it is
running.

> 
> Anyway, I do not see the program run.  Of course I am doing something
> very basic wrong....anyone know what it is???  Thanks !!!
> 

You did not do anything wrong. Put this in a .pl file and double click
on it the way you did earlier

#!perl

while(1){

print STDOUT "BOLLOCKS";
sleep(1);
}


You will notice now that the dos console does not disappear.


H

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About