473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Installing Perl in Vista!

Hello, Guys I'm TOTALLY new at programming (in fact i HATE it) but i heard so much good things about Perl (that its also EASY) i decided to start with it.

But I'm having trouble installing it on Windows Vista, i used the website below and i thought i installed Perl using the MSI installer below.

But to no avail i can't even get the simplest (Hello World example) of programs to run via the Command Prompt. Even though I'm able to use the perldoc command via the Command Prompt and get the expected results.


http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca

Btw I'm using the online book Beginning Perl by Simon Cozens as a guide

I'd love for someone/anyone to help me out.

Thanks!!!!!!
Sep 4 '07 #1
3 10686
numberwhun
3,509 Expert Mod 2GB
First, Welcome to TSDN!!! Second, excellent choice deciding on Perl.

As for your issue, I don't have any experience with Vista (thankfully) but I would think that Active State would have ported it over already. If you can run perldoc, then there should not be any reason your script(s) won't run.

Do this, post your code here ( enclosing it in code tags) and also please post how you are trying to execute your script.

As for the text you are studying, I have that book and it is very good, but I much prefer "Learning Perl, 4th Edition" as it is a great beginners book for Perl and highly coveted by the community. Others will mention the camel book, but it is mostly a function reference (which you get get through perldoc anyway) and I think that Learning Perl does a much better job of explaining certain things. Although, please don't discount the Camel book as it is still a very handy reference as well.

Regards,

Jeff
Sep 4 '07 #2
KevinADC
4,059 Expert 2GB
I've not tried installing perl on a Vista box yet but I would assume the standard Windows version of activestate perl would be the one to try. Activestate makes no mention of Vista on the perl download/system requirements page. But on windows to invoke a perl program from the command prompt you must use the path to perl or chdir to the perl executable:

c:\perl\bin\perl.exe nameofscript.pl

if you add perl to the command prompt you can invoke perl by name only:

perl nameofscript.pl

if you do further configurations of windows, which I have never done, you can get perl scripts to run just by typing the name and extension of the perl file at the command prompt:

nameofscript.pl


Windows does not use the shebang line which is typically the very first line of a perl program:

#!c:\perl\bin\perl.exe

You can put anything there and windows will ignore it. You must use one of the methods above to run your perl programs from the command prompt.
Sep 4 '07 #3
Thank you numberwhun and KevinADC i truly appreciated your response. I got back home in the evening today i proceeded to giving it a shot again,and it works now.

I read your recommendations and i was just about replying when i decided i should check through the book i mentioned, thats when i realized i omitted the whole file naming thing. (my filename was hello1.plx.txt rather than hello1.plx.) so i made the correction and it works now. This is one of the major reasons why i don't have the patience for programming; stupid human errors.

In fact i was so sleepy and i said before i go to bed I'll give an update on my status after i could convince myself i had tried everything. Now that i got it working my sleepy eyes are no longer sleepy, i guess this is the highs and lows of being a programmer! even though i cannot call myself that yet.

But thanks again for your responses, it was truly appreciated.

:)
Sep 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Padraig | last post by:
Hi all, Just a quick question... when I try to install Python on Windows Vista Beta 2 the installer seems to hang after I select the destination folder, saying that it will "return when it has...
11
by: Don | last post by:
QUESTIONS: 1. Has anyone figured out how to successfully install the Office 97 Pro Service Release 2 patch in Vista? 2. Has anyone successfully installed an Office 97 Pro CD (SR2 version) in...
17
by: merrily | last post by:
Read in one forum the question someone asked after successfully (sort of) installing Picture It 2000 on new computer with Vista. Will this person or any other help me accomplish this install on...
12
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP...
11
by: DavidW | last post by:
The application installed okay, but attempted installation of SP1 produces an error 1606 ("Could not access network location VS Developers (cannot create group)"). It's hard to believe that any...
0
by: Peter Van Peborgh | last post by:
I have an app that is built in Access 2002 and packaged with its runtime. When installing it in a Vista PC/laptop, several dialog boxes pop up that require specific answers for the app to install and...
2
by: Tam | last post by:
Im running into problems installing either VS 05 or 08 on a Vista Premium 64 bit machine and, ahem, it isnt going sweetly. When installing i get an "Error 1935.An error occured during the...
2
by: sbettadpur | last post by:
Hiiii > > I have installed mysql , Active perl 5.10 successfully but > Template-GD: ppm install Template-GD > PerlMagick: ppm install PerlMagick > SOAP-Lite: ppm install SOAP-Lite > ...
3
by: techtonator | last post by:
Hi All, I wonder why I bought the Vista Home Premium 64 bit laptop (perhaps only the 64 bit thing lured me :) :( ) because I am unable to do anything really useful on the machine. Here is another...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.