Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl install

Status
Not open for further replies.

whygh

Programmer
Apr 18, 2005
16
CA

Good Morning,

I am a new onr to this Forum and to Perl. Now I plan to learn Perl . Today, I download ActivePerl-5.8.6.811-MSWin32-x86-122208.msi and install. everything is ok.

But when I click "c:/perl/perl.exe", it just give me a black-window.

How should I do to start Perl Application?

Thanks
 
You have to open a text editor like notepad, or an editor for programming languages and after you write your first script
Code:
print "Hello World";
save it wherever you want with whatever name you want lets say 'script.pl'. All of the perl programs preferably end with pl.
then open the cmd
from Start->Run enter cmd press enter. Your command prompt will show up. Go to the folder where you saved this first script
and write on the command prompt

> script.pl

and press enter


Of course you can double click on it, it will run, but because of it being simple and just prints something on the screen ,
the only thing that you will see is a black screen (cmd) blinking once, and closing.

The perl.exe is the interpreter of the language perl.
So if you dont give him something to interprete then he opens an empty cmd and he closes it.(doing nothing)

I dont know if you are familiar with any other programming language but if you are with any visual basic or visuall c++ then perl has nothing to do with this kind of interface.

For a start go to
Beginning_Perl
and do a little reading [red]from the start[/red]

Welcome to the world of Perl and good luck


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top