CGI scripts in Perl

2002-01-08 Thread Naveen Parmar
I have Microsoft Personal Web Server on my local machine. My perl scripts run fine from the command line. When I try to run them from cgi-bin within INetpub/wwwroot, they fail raising the HTTP/1.1 500 Server Error. Any ideas? - NP _

CGI vs. Servlet technologies

2002-01-08 Thread Naveen Parmar
What are the key differences between CGI and Servlets? - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Switches

2002-01-11 Thread Naveen Parmar
Any site that provides details on the different command line switches? Regds, - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

2 Questions

2002-01-14 Thread Naveen Parmar
1) Double clicking my Perl file within Windows Explorer opens within the DOS window, but then closes immediately after execution. It flashes up on the screen and closes itself. Can I prevent this auto termination? 2) Is there any difference between using the following within Perl scripts? ""

Bareword

2002-01-15 Thread Naveen Parmar
The following error occurs on my Windows ME machine: Bareword found where operator expected at c:\myperl\hello.pl line 3"" (missing operator before r?) Bareword found where operator expected at c:\myperl\hello.pl line 3"" WHEN EXECUTING THIS PERL SCRIPT #!/usr/bin/perl # Filename: first_script

gt

2002-01-15 Thread Naveen Parmar
Is the following correct? Does 'gt' stand for 'greater than'? $word1 gt $word2 -- The string $word1 comes after $word2 - NP _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.

Conditional Expressions

2002-01-16 Thread Naveen Parmar
The following conditional expression tests whether the value of $number1 is negative or greater than 12: (($number1 < 1) || ($number1 > 12))" Shouldn't this test whether the number is 0, negative, or > 12? Is this unique to the way Perl uses numbers? TIA, - NP ___

Random Access Numbers

2002-01-16 Thread Naveen Parmar
Is there is a built in function in Perl for generating random access #s? How would that function be used? TIA, - NP _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTEC

int()

2002-01-17 Thread Naveen Parmar
Should int(-1.5) return -2? - NP _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Understanding PERL statement

2002-01-19 Thread Naveen Parmar
What does $ stand for in the following statement? print"$_\t", "*" x $n, "\n"; TIA, - NP _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [

Running scripts within browsers

2002-01-20 Thread Naveen Parmar
Hello, My activeperl installation was fine. When I try to run my example Perl scripts within IE, the browser does not even recognize them?? Any ideas??? - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/in

%

2002-01-24 Thread Naveen Parmar
Hello, What does % represent in the following statement? %daysPerMonth = ('Jan' => 31, 'Feb' => 28, 'Mar' => 31); Is %daysPerMonth an array? Do we really need an array for this? TIA, - NP _ Chat with friends online, try MSN Messen

Scalars

2002-01-24 Thread Naveen Parmar
Why are the following 2 invalid scalar assignments? B. $17april = $dayDay 2; C. $april.17 = $dayDay 2; TIA, - NP _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECT

Pattern matching

2002-01-24 Thread Naveen Parmar
What is the purpose of using [^"] in the following expression: s/^([^ ]+) +([^ ]+)/$2 $1/; _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Input from file

2002-01-28 Thread Naveen Parmar
Hello, How do I have Perl script accept input from a file? TIA, - NP _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

2 questions

2002-01-29 Thread Naveen Parmar
1) How do you define global & lexical variables in Perl? 2) Is the arrow (->) a commonly used Perl operator? TIA, - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAI

Perl and CGI

2002-02-05 Thread Naveen Parmar
What are the differences between Perl and CGI? Can I simply rename Perl files to .CGI and use them? What is the crossover from Perl to CGI? TIA, - NP _ Send and receive Hotmail on your mobile device: http://mobile.msn.com --

Using require()

2002-02-06 Thread Naveen Parmar
Does require() work only twice? I've tried multiple loops only to get this to work a third time. After every time, however, it automatically exits. Here's an example: if (a = true) { require 'naveen.pl"; } else { print "You are not Naveen.\n"; exit; As long as a = true, it should call 'naveen.

Sites

2002-02-13 Thread Naveen Parmar
Any recommendations on free Web sites where you may upload Perl scripts and execute CGI scripts? TIA, - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECT

Perl for Mac

2002-03-07 Thread Naveen Parmar
Any good text editors for Mac? I am interested in something that will display at least line #s. TIA, - NP _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: [EMAIL PR