Re: Two easy questions.

2004-09-21 Thread Doug Lewis

Your answer actually lies in the system that you are using first.  The reason the CGI 
scripts hold the .cgi extension.  Is because that is what your webserver uses to grab 
your CGI scripts from your CGI directory.
 
As for using perl myscript.  That is a windows thing.  If I remember correctly  (Don't 
qoute me on this, because I don't use perl on windows.) but if you run your script in 
the directory that you have perl installed in, you don't need the perl part.
 
Hopefully I have explained it clearly enough, sorry it is rather late, and I am 
friggin tired, if when I read this in th morning it sounds shitty, I will reword it 
and re-email it.
Drue Reeves [EMAIL PROTECTED] wrote:


Truly newbie questions

Why do some scripts have a CGI extension while other a .pl and still other a .plx? 
Does the .cgi extension give it some web characteristics?

Is there a way to run my script without specifying perl before the script? In other 
words, I want to type c:\myscript.plx instead of c:\perl myscript.plx.

Thanks,

Drue



-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Re: Two easy questions.

2004-09-21 Thread Le Sandy Sun
yes.I think your question is making the 'perl command interpret' default 
to excute the plx file that you made.You can make the configration in 
windos to solve the problem.

-Sandy

Drue Reeves wrote:
Truly newbie questions
Why do some scripts have a CGI extension while other a .pl and still other a .plx? 
Does the .cgi extension give it some web characteristics?
Is there a way to run my script without specifying perl before the script? In other 
words, I want to type c:\myscript.plx instead of c:\perl myscript.plx.
Thanks,
Drue
 


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response



Re: Two easy questions.

2004-09-21 Thread Bob Gordon
If you are in 2K or XP you can go to the System Properties screen.  In
there click on the advanced tab then Environment Variables.  Under
System Variables locate PATHEXT.  Add  ;.pl  to the end of the list
then click OK.

The system should allow for executing .pl files.  As long as you have
the #!..  info at the top of the file you should be OK.

Regards,

-- 
--==[ Bob Gordon ]==--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Two easy questions.

2004-09-20 Thread Drue Reeves


Truly newbie questions

Why do some scripts have a CGI extension while other a .pl and still other a .plx? 
Does the .cgi extension give it some web characteristics?

Is there a way to run my script without specifying perl before the script? In other 
words, I want to type c:\myscript.plx instead of c:\perl myscript.plx.

Thanks,

Drue



RE: Two easy questions.

2004-09-20 Thread Adrian Muhrer
Never heard of a .plx, but the .pl and .cgi are really just naming
convention.
Having said that if you are running activestate perl, it normally installs
with .pl associated with perl (but not cgi).  If you are running nt4 (2k?)
or greater you should be able to run myscript.pl without putting perl in
front

I think you can set up apache to only run (for example) .cgi's and not .pl's
but I never have.

-Original Message-
From: Drue Reeves [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 21 September 2004 12:58 
To: Gunnar Hjalmarsson; [EMAIL PROTECTED]
Subject: Two easy questions.




Truly newbie questions

Why do some scripts have a CGI extension while other a .pl and still other a
.plx? Does the .cgi extension give it some web characteristics?

Is there a way to run my script without specifying perl before the script?
In other words, I want to type c:\myscript.plx instead of c:\perl
myscript.plx.

Thanks,

Drue



This email message (and any accompanying file attachments) may contain copyright, 
confidential or privileged information and is intended for the sole use of the 
addressee named above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, please notify 
Australian Fast Foods Pty Ltd by return email and then delete the email, destroy any 
printed copy and do not disclose or use the information in it. Any unauthorised 
review, use, alteration, disclosure or distribution of this email (including 
attachments) by an unintended recipient is prohibited. Any views expressed in this 
message are those of the individual sender, Australian Fast Foods Pty Ltd does not 
represent that this message or any attached files are free from computer viruses.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Two easy questions.

2004-09-20 Thread WilliamGunther
You appear to be on a Windows system. The file  extensions on Windows are for 
association. Hence, to answer your second question  first, if you're on 
ActiveState Perl, all .pl extensions are automatically  associated with perl, if 
you did it right, and just typing 'foo.pl' in the shell  should run it. .cgi, 
.pl, etc. It doesn't matter to the interpreter. It may  however matter to how it 
is treated by the OS and other programs, such as a  server.

--
-will 
http://www.wgunther.tk
(the above message is  double rot13 encoded for security reasons)

Most Useful Perl  Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone
-Perl::Tidy
-Beautifier
-DBD::SQLite   


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




RE: Two easy questions.

2004-09-20 Thread Raymond Raj
Hi!

assoc  and ftype commands are used to associate extension for
particular file types..


Is there a way to run my script without specifying Perl before the
script? In other words, I want to type c:\myscript.plx instead of c:\perl
myscript.plx.

yes you can, try assoc /? and  ftype /? it'll tell  how to associates
file types.

HTH
Raymond

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 8:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Two easy questions.


You appear to be on a Windows system. The file  extensions on Windows are
for
association. Hence, to answer your second question  first, if you're on
ActiveState Perl, all .pl extensions are automatically  associated with
perl, if
you did it right, and just typing 'foo.pl' in the shell  should run it.
.cgi,
.pl, etc. It doesn't matter to the interpreter. It may  however matter to
how it
is treated by the OS and other programs, such as a  server.

--
-will
http://www.wgunther.tk
(the above message is  double rot13 encoded for security reasons)

Most Useful Perl  Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone
-Perl::Tidy
-Beautifier
-DBD::SQLite


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response