Hey Beans,         

My MUA believes you used 
to write the following on Wednesday, August 14, 2002 at 1:29:57 PM.

B> I'm very very new at Perl. I have a question regarding Perl
B> scripting on Windows. I'm using library books to learn and most of
B> the examples are for UNIX....

B> My question is:
B> After writing a .pl file in a text editor, is it neccessary to make it
B> executable using the command:
B>         chmod +x example.pl ?

Not on Win32, that is a unix only thing.

B> I don't think the book is suggesting to make a .pl file into an .exe file.

Correct

B> Is this step something that is neccessary for UNIX but not for Windows?

Correct again

B> As it stands now, all my .pl files are associated with ActiveState perl.
B> When i double click on them, the perl window opens and displays the output
B> for only a fraction of a second before it closes.

Well, that is good as far as it goes.  Try dropping to a cmd window
and running it there.  So if you have mycode.pl you should be able to
just run 'mycode'.

btw, you need to be in the same dir to do that... dir mycode.pl should
list your file...

The reason it closes is perl is running in a command window.  So it
opens the window, runs your code, then when your code is completed, it
closes the command window.

Another thing you could do is put a 'sleep 30' statement at the end of
your code.

-- 
[EMAIL PROTECTED]
Using The Bat! eMail v1.61
Windows 2000 5.0.2195 (Service Pack 2)
use Perl; \ program \ fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to