RE: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Steve Howard

The problem is not consistency in design, it is file association and your
pathext environment variable. Create a pl file association in NT and you can
start the perl programs from command prompt like:

myprog.pl

It works just fine (I have it like that all over our network).

What's more, you can make .pl files look executable by adding .pl to your
pathext variable. to see your pathext:

>From the command prompt type:

echo %pathext%

if .pl is not in that variable, you to put .pl on the end of the file to run
a .pl file by the file association, or you can add it using:

set pathext=%pathext%;.pl

You can set that permanently in the System applet in your control panel.
once .pl appears in your pathext, you can actually start myprog.pl by
typing:

myprog

and hitting return. NT will recognize it.

Steve Howard

-Original Message-
From: Chris Garringer [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 4:23 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Stuck in the Perl Beginners Panic-Zone!


I've run Activestate perl on NT and W2000.  On NT I had to use perl .  On 2000 I only need the program name.  What would be required on a
"consumer" rather that "business' M$ Operating system I don't know.  It
"should" be a matter of associating the extension you are using with the
perl program, and having the program in the path.  But M$ is not noted for
consistency in design.

Chris D. Garringer
LAN/WAN Manager
Master Certified Netware Engineer
Microsoft Certified Systems Engineer
Certified Solaris Administrator
Red Hat Certified Engineer
[EMAIL PROTECTED]
fax 713-896-5266


>>> <[EMAIL PROTECTED]> 06/15/01 03:59PM >>>
Ok, I'll take a different approach to my question.

Is there anyone out there who runs their PERL scripts on a Windows Me driven
computer? If so, what version of PERL do you use and "EXACTLY"  what steps
do
you take to get your scripts to run on your system. (Porperty settings,
command line option, batch files, the whole nine). Also are there any Books
or online documents that consentrates exclusively on running PERL scripts on
a windows me system. All I want to do is practice my scripts as I'm learning
PERL But It seems like getting the scripts to run is harder than learning
the
actual Language.




Re: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Paul Johnson

On Fri, Jun 15, 2001 at 02:58:49PM -0700, Mark Folse wrote:
> 
> --- [EMAIL PROTECTED] wrote:
> > 
> > When I open (launch) my PERL inturpreter (location
> > C:\Perl\bin\perl.exe) I 
> 
> Viola! Perl Does Windows!

That's all fine, except that perl.exe is apparantly in C:\Perl\bin

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net



RE: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Peter Cornelius

> > When I open (launch) my PERL interpreter (location
> > C:\Perl\bin\perl.exe) I 
> > get a black screen with a blinking white line.
> 
> Whoa! Don't open the Perl interpreter.
Well, he could launch the Perl interpreter.  From your reaction I guess you
think he was opening it in notepad or something, that would probably be bad.
It sounds like he's just launching it from explorer though.  

You can start typing stuff in at the blinking white line and when you're
done hit  and whatever you typed in will be interpreted.
Try...

print "Hello World!\n";
$wait = <>;
 



Re: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Mark Folse


--- [EMAIL PROTECTED] wrote:
> Ok here goes; 
> 
> the name of the file that I'm trying to run is hello.pl which is
> located in 
> at:
> 
> C:\Perl\hello.pl
> 
> When I open (launch) my PERL inturpreter (location
> C:\Perl\bin\perl.exe) I 
> get a black screen with a blinking white line.

Whoa! Don't open the Perl interpreter.

At the c:\perl prompt, type perl hello.pl.

Type set. If c:\perl is in the search path, you can type "perl
hello.pl" from any location in the directory tree.

If its not in the search path, you can add Perl to the search path.

Either edit the existing path statement, or add one below it with like
this: PATH=%PATH%;C:\perl  in the autoexec.bat.

Viola! Perl Does Windows! Or should I say Perl Does DOS 7. Or is it DOS
8, in ME?


=

-
Notice: This e-mail is protected by the U.S. Constitution and the U.N. Declaration of 
Human Rights. Unauthorized interception by any public or private agency is an ugly 
sort of work to be in. Does your mother know you spend your days reading other 
people's mail? Would she be proud of you?

-
Please visit: http://clubs.yahoo.com/clubs/district41democrats

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



Re: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Brett W. McCoy

On Fri, 15 Jun 2001, Chris Garringer wrote:

> I've run Activestate perl on NT and W2000.  On NT I had to use perl
> .  On 2000 I only need the program name.  What would be
> required on a "consumer" rather that "business' M$ Operating system I
> don't know.  It "should" be a matter of associating the extension you
> are using with the perl program, and having the program in the path.
> But M$ is not noted for consistency in design.

The CygWin Perl port 5.6.1 works exactly as under Unix, using the shebang
path, as long as you set the executable bit.  CygWin also has the
advantage that you can use CPAN modules and compile with gcc directly --
even if you use the cpan shell.

-- Brett
   http://www.chapelperilous.net/btfwk/

All men profess honesty as long as they can.  To believe all men honest
would be folly.  To believe none so is something worse.
-- John Quincy Adams




Re: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Chris Garringer

I've run Activestate perl on NT and W2000.  On NT I had to use perl .  
On 2000 I only need the program name.  What would be required on a "consumer" rather 
that "business' M$ Operating system I don't know.  It "should" be a matter of 
associating the extension you are using with the perl program, and having the program 
in the path.  But M$ is not noted for consistency in design.

Chris D. Garringer
LAN/WAN Manager
Master Certified Netware Engineer
Microsoft Certified Systems Engineer
Certified Solaris Administrator
Red Hat Certified Engineer
[EMAIL PROTECTED]
fax 713-896-5266


>>> <[EMAIL PROTECTED]> 06/15/01 03:59PM >>>
Ok, I'll take a different approach to my question.

Is there anyone out there who runs their PERL scripts on a Windows Me driven 
computer? If so, what version of PERL do you use and "EXACTLY"  what steps do 
you take to get your scripts to run on your system. (Porperty settings, 
command line option, batch files, the whole nine). Also are there any Books 
or online documents that consentrates exclusively on running PERL scripts on 
a windows me system. All I want to do is practice my scripts as I'm learning 
PERL But It seems like getting the scripts to run is harder than learning the 
actual Language.   



Re: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Michael D . Risser

On Friday 15 June 2001 01:59 pm, you wrote:
> Ok, I'll take a different approach to my question.
>
> Is there anyone out there who runs their PERL scripts on a Windows Me
> driven computer? If so, what version of PERL do you use and "EXACTLY"  what
> steps do you take to get your scripts to run on your system. (Porperty
> settings, command line option, batch files, the whole nine). Also are there
> any Books or online documents that consentrates exclusively on running PERL
> scripts on a windows me system. All I want to do is practice my scripts as
> I'm learning PERL But It seems like getting the scripts to run is harder
> than learning the actual Language.

What I do when trying to run a perl script under M$ is run it from the 
command line:  perl scriptName.pl

You need to make sure that you have the perl executable in your path. (Your 
path can be found in C:\autoexec.bat)

The options for perl on the DOS command line, at least from my experience, 
are the same as those under the Unices.

If you haven't already, I try not to make assumptions :-), get ActivePerl 
from http://www.activestate.com, they make all of thier documantation, 
including how to use perl under Win32, available in HTML format, so you just 
need to open a web browser and point it to 
$PATH_TO_PERL_INSTALL\Docs\index.html