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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbi Starting Question 1

Status
Not open for further replies.

CodingIsFun

Programmer
Apr 9, 2004
134
US
Hi all experts:

I have been designated PERL learner in my group and have installed the ActivePerl-5.8.8.817-MSWin32-x86-257965.msi.

I am trying to run my first hello world program. How do I do this? I tried $ ./hello from the command line and received the following error:

$ is not recognized as an internal or external command.

thanks in advance...
 
first of all the [red]./hello[/red] is a *nix way of running executable files
second the [red]$[/red] in the begining is the command prompt of that particular *nix (something like [red]c:\>[/red] in windows)

So if you want to run your perl scripts on windows you type
[blue]c:\> my_script_name.pl[/blue]
all your scripts should have the .pl at the end.

If you don't want to attach that extension to your script name then you can run it as
[blue]c:\> perl my_script_name[/blue]


``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