niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl
Getting started in PXPerl, i.e how to run a script?
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Markus Hänchen
*nix forums beginner


Joined: 20 Jul 2006
Posts: 3

PostPosted: Thu Jul 20, 2006 2:12 pm    Post subject: Getting started in PXPerl, i.e how to run a script? Reply with 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:

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

PostPosted: Thu Jul 20, 2006 2:25 pm    Post subject: Re: Getting started in PXPerl, i.e how to run a script? Reply with quote

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

PostPosted: Thu Jul 20, 2006 4:45 pm    Post subject: Re: Getting started in PXPerl, i.e how to run a script? Reply with quote

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

PostPosted: Thu Jul 20, 2006 6:04 pm    Post subject: Re: Getting started in PXPerl, i.e how to run a script? Reply with quote

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

PostPosted: Thu Jul 20, 2006 6:27 pm    Post subject: Re: Getting started in PXPerl, i.e how to run a script? Reply with quote

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

PostPosted: Fri Jul 21, 2006 2:39 am    Post subject: Re: Getting started in PXPerl, i.e how to run a script? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 7:17 pm | All times are GMT
navigation Forum index » Programming » Perl
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts does squid 2.6 support setting cache_peer port in redirec... Victor Tsang Squid 0 Fri Jul 21, 2006 8:16 am
No new posts mail script eeb4u@hotmail.com shell 3 Fri Jul 21, 2006 5:50 am
No new posts A simple bash script JPB Suse 2 Fri Jul 21, 2006 2:19 am
No new posts Match pattern in ksh script lnrntx@gmail.com shell 6 Thu Jul 20, 2006 1:48 am
No new posts Help with script to get backup log status on windows systems Matt Williamson Perl 5 Wed Jul 19, 2006 3:58 pm

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
[ Time: 0.2414s ][ Queries: 16 (0.1499s) ][ GZIP on - Debug on ]