|
|
|
|
|
|
| Author |
Message |
Markus Hänchen *nix forums beginner
Joined: 20 Jul 2006
Posts: 3
|
Posted: Thu Jul 20, 2006 2:12 pm Post subject:
Getting started in PXPerl, i.e how to run a script?
|
|
|
Hi,
I just tried to get Perl running on a Windows 2000 machine (coming from
Mac OS X) and started by installing PXPerl (http://pxperl.com).
Installation went ahead without any errors.
But I have not figured out yet, how to a run a script.
I tried to run a simple script in the console simply by typing
'helloWorld.pl' (i.e. the name of the script). Upon doing that an
application called SciTE opens and displays the file (SciTE looks like
being a simple editor). Trying out the menu 'Tools -> Compile', I get
the output:
| Quote: | perl helloWorld.pl
The system cannot find the file specified.
|
What is going wrong here? Or, what I am doing wrong?
Any help is highly appreciated.
Markus
P.S.: The script:
#!perl
print "Hello World!\n";
It has DOS line endings. |
|
| Back to top |
|
 |
sigzero@gmail.com *nix forums addict
Joined: 29 Jul 2005
Posts: 83
|
Posted: Thu Jul 20, 2006 2:25 pm Post subject:
Re: Getting started in PXPerl, i.e how to run a script?
|
|
|
Markus Hänchen wrote:
| Quote: | Hi,
I just tried to get Perl running on a Windows 2000 machine (coming from
Mac OS X) and started by installing PXPerl (http://pxperl.com).
Installation went ahead without any errors.
But I have not figured out yet, how to a run a script.
I tried to run a simple script in the console simply by typing
'helloWorld.pl' (i.e. the name of the script). Upon doing that an
application called SciTE opens and displays the file (SciTE looks like
being a simple editor). Trying out the menu 'Tools -> Compile', I get
the output:
perl helloWorld.pl
The system cannot find the file specified.
What is going wrong here? Or, what I am doing wrong?
Any help is highly appreciated.
Markus
P.S.: The script:
#!perl
print "Hello World!\n";
It has DOS line endings.
|
The "bin" directory isn't in your PATH probably.
The bigger question is why PXPerl? I don't (or didn't) think it is
being worked on any more.
Robert |
|
| Back to top |
|
 |
Markus Hänchen *nix forums beginner
Joined: 20 Jul 2006
Posts: 3
|
Posted: Thu Jul 20, 2006 4:45 pm Post subject:
Re: Getting started in PXPerl, i.e how to run a script?
|
|
|
| Quote: | The "bin" directory isn't in your PATH probably.
The bigger question is why PXPerl? I don't (or didn't) think it is
being worked on any more.
Robert
|
Thanks for the reply. I have figured it out myself in the meantime
(typing 'perl helloWorld.pl' works now):
I had to restart Windows!
Coming from Mac OS X, I did not consider that after fiddling with the
PATH, as the PXPerl installer did, one might have to restart, and I
also did not see anything in the PXPerl instructions asking for a
restart.
As to why I chose PXPerl, browsing through the list at
www.cpan.org/ports/#win32, and not knowing anything about Perl on
Windows, its description sounded appealing and installation was also
absolutely straightforward.
But since I have to install Perl on other Windows machines as well,
what distribution would you recommend?
Markus |
|
| Back to top |
|
 |
Chris Mattern *nix forums Guru Wannabe
Joined: 13 Mar 2005
Posts: 122
|
Posted: Thu Jul 20, 2006 6:04 pm Post subject:
Re: Getting started in PXPerl, i.e how to run a script?
|
|
|
Markus Hänchen wrote:
| Quote: | The "bin" directory isn't in your PATH probably.
The bigger question is why PXPerl? I don't (or didn't) think it is
being worked on any more.
Robert
Thanks for the reply. I have figured it out myself in the meantime
(typing 'perl helloWorld.pl' works now):
I had to restart Windows!
Coming from Mac OS X, I did not consider that after fiddling with the
PATH, as the PXPerl installer did, one might have to restart, and I also
did not see anything in the PXPerl instructions asking for a restart.
As to why I chose PXPerl, browsing through the list at
www.cpan.org/ports/#win32, and not knowing anything about Perl on
Windows, its description sounded appealing and installation was also
absolutely straightforward.
But since I have to install Perl on other Windows machines as well, what
distribution would you recommend?
Markus
|
I don't run Perl on Windows myself, but ActiveState seems to be what
everybody on Windows uses.
Chris Mattern
on Windows uses. |
|
| Back to top |
|
 |
Markus Hänchen *nix forums beginner
Joined: 20 Jul 2006
Posts: 3
|
Posted: Thu Jul 20, 2006 6:27 pm Post subject:
Re: Getting started in PXPerl, i.e how to run a script?
|
|
|
| Quote: | I don't run Perl on Windows myself, but ActiveState seems to be what
everybody on Windows uses.
Chris Mattern
on Windows uses.
|
Thanks, I am going to try it out on the next machine.
Markus |
|
| Back to top |
|
 |
sigzero@gmail.com *nix forums addict
Joined: 29 Jul 2005
Posts: 83
|
Posted: Fri Jul 21, 2006 2:39 am Post subject:
Re: Getting started in PXPerl, i.e how to run a script?
|
|
|
Markus Hänchen wrote:
| Quote: | I don't run Perl on Windows myself, but ActiveState seems to be what
everybody on Windows uses.
Chris Mattern
on Windows uses.
Thanks, I am going to try it out on the next machine.
Markus
|
The ActiveState version will register .pl extensions to the Perl exe
and you won't have to type "perl someprogram.pl" just "someprogram.pl".
:Robert |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Mon Dec 01, 2008 7:17 pm | All times are GMT
|
|
Mortgage Calculator | Verizon Ringtones | Car salvage | Naruto shippuden | Mortgage Calculator
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|