I can't get perl to work on my PC with the Windows 2000 pro OS.
when I type in perl example.pl at the command prompt I get
no such file or directory message, but I am looking right at the example.pl file.
Cory Moore
Campaign Manager
Pat Ahumada for Congress
www.patforcongres
type PATH at the C:\> command prompt I get
PATH=D:\Perl\bin\; I still can't even run a simple print ("Hello\n");
from the C:\>command prompt. where is what I type
#!D:\Perl\bin\;
print ("Hello\n");
then I press enter and nothing happens but a carriage return
Cory Moo
When I type perldoc perl at the command prompt I get the following:
Can't spawn "cmd.exe": No such file or directory at D:\Perl\bin\PERLDOC.bat line 395
Is this why I can not get perl to work
Cory Moore
Campaign Manager
Pat Ahumada for Congress
www.patforcongress.com
www.americanvirtue.com
Tim,
That fixed it. But I still can't make a simple script like:
print ("Hello\n");
print to the command line. Here is what I do:
C:\>perl
print ("Hello\n"); I hit enter and nothing. what am I doing wrong?
Cory Moore
Campaign Manager
Pat Ahumada for Con
tten script, but that is it. I have the camel book
and none of the sample scripts will run. HELP!!!
Cory Moore
Campaign Manager
Pat Ahumada for Congress
www.patforcongress.com
www.americanvirtue.com
.
Cory Moore
Campaign Manager
Pat Ahumada for Congress
www.patforcongress.com
www.americanvirtue.com
open(FILEHANDLE, "+>$filename");
would create a file for writing in the current directory named whatever
was in $filename.
> -Original Message-
> From: Tom Allison [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 07, 2005 7:37 PM
> To: Timothy Johnson
> Cc: ZHAO, BING; [EMAIL PROTECT
ll active - if it is, it exits, otherwise
it keeps running and updates the file with the new PID.
Cory
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>