RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
Well, this is gone to far. Some books say Perl some say PERL. I say potatoe, you say tamato. If the biggest issue we have is the caps the on a name then we're lucky. We all agree it's #!/usr/bin/perl or whatever path when scripting. Cheers. -Original Message- From: Randal L. Schwartz [mai

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Scot" == Scot Robnett <[EMAIL PROTECTED]> writes: Scot> Somebody better tell Nathan Patwardhan, Ellen Siever, & Stephen Scot> Spainhour then. I'm looking at the 2nd edition of PERL IN A Scot> NUTSHELL (and that is exactly how it's printed) right now. I don't have a copy of the book at han

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
Ah, another "uncool". Thanks Scot. I don't write the books,I read them -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:48 AM To: Randal L. Schwartz; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Cool Hand Luke Subject: RE: The very un-useful 'pr

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Scot Robnett
Somebody better tell Nathan Patwardhan, Ellen Siever, & Stephen Spainhour then. I'm looking at the 2nd edition of PERL IN A NUTSHELL (and that is exactly how it's printed) right now. I knew the difference but just had to throw that in there. :) -Original Message- From: Randal L. Schwar

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
The jig is up, I'm not part of the "cool crowd". You're not the first to say that and I shan't engage in semantics with, but will still read your posts. Let's drop this. -Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:18 AM To: [EMAIL

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Bill" == Bill Burke <[EMAIL PROTECTED]> writes: Bill> Thanks for the edification. You have been one of the most prolific Bill> contributors to the group, so I take no umbrage. Truly, you write it as Bill> perl, but the books label it PERL (Practical Extraction and Reporting Bill> Language).

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
Thanks for the edification. You have been one of the most prolific contributors to the group, so I take no umbrage. Truly, you write it as perl, but the books label it PERL (Practical Extraction and Reporting Language). Please remember this is a beginners group which shares your enthusiasm, but not

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Bill" == Bill Burke <[EMAIL PROTECTED]> writes: Bill> I added a chat room at my site http://www.speakerscorner.us . You are Bill> welcome there and we can discuss PERL in real time. Don't quit the user Bill> group though, you won't want to miss anything And there's no such thing as "PERL".

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
I added a chat room at my site http://www.speakerscorner.us . You are welcome there and we can discuss PERL in real time. Don't quit the user group though, you won't want to miss anything -Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 8:4

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Cool" == Cool Hand Luke <[EMAIL PROTECTED]> writes: Cool> Hello All, Cool> I think I figured it out, (so far). I 'm pretty sure that it has to do Cool> with perl 5.003 disliking the looping with the "my $pair" syntax. Cool> As a work around, I changed this Cool> foreach my $pai

RE: IIS saves '.pl' file - not execute

2003-03-28 Thread Peter Kappus
I can't figure out why one would work and not the other...but make sure IIS is set up to handle .pl files (under the "home directory" tab click "configuration" and look at "app mappings" you should see ".pl C:\path\to\perl.exe GET,POST,ETC" if you don't, then IIS is improperly configured... Also m

Re: "safe" system()?

2003-03-28 Thread drieux
On Friday, Mar 28, 2003, at 12:19 US/Pacific, Bob Showalter wrote: drieux wrote: ... think about the case of $file = '/path/to/file ; ( find / -print | xargs rm -r -f )'; system("md5 $file"); DO NOT TRY THAT ONE AT HOME KIDDIES Wouldn't system('md5', $file); Be safer, since the li

Re: "safe" system()?

2003-03-28 Thread wiggins
On Fri, 28 Mar 2003 12:00:09 -0800, drieux <[EMAIL PROTECTED]> wrote: > > On Friday, Mar 28, 2003, at 11:01 US/Pacific, Jerry LeVan wrote: > > And BEFORE wiggins whines at me for not pointing at > putting stuff that could be in a Module INTO a M

RE: Printing all values except. . .

2003-03-28 Thread Scot Robnett
This is untested my $query = new CGI; my %names = $query->Vars; foreach my $key(keys(%names)) { print "$key\: $names{$key}\n" if (($key eq 'name') or ($key eq 'email')); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Printing all values except. . .

2003-03-28 Thread Kim Forbes
Hello all, I want to first give a group thanks to everyone who helped me with my first script. I used CGI.pm and everything works fine. Now, I want to display on the screen all form parameters except 2. I tried using: my $query = CGI->new(); my @names = $query->param; foreach my $name ( @names

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Scot Robnett
Ahhh, the famous 'map' function - haven't tried it, so I guess it's about time to give it a try. I wasn't too familiar with 'exists' either...thanks for the advice. - Scot Robnett -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:23 PM T

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Bob Showalter
Scot Robnett wrote: > Anything I can do to make this an easier question? No > responses...maybe I didn't ask the question the right way or made it > confusing as to what I am trying to do? Would it help to split it up? > Thanks for any advice... > > ... > foreach $record(sort(@records)) { > chom

RE: "safe" system()?

2003-03-28 Thread Bob Showalter
drieux wrote: > ... > think about the case of > > $file = '/path/to/file ; ( find / -print | xargs rm -r -f )'; > system("md5 $file"); > > DO NOT TRY THAT ONE AT HOME KIDDIES Wouldn't system('md5', $file); Be safer, since the list form of system() bypasses the shell? Consider:

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Scot Robnett
Anything I can do to make this an easier question? No responses...maybe I didn't ask the question the right way or made it confusing as to what I am trying to do? Would it help to split it up? Thanks for any advice... Scot R. -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTE

Re: "safe" system()?

2003-03-28 Thread drieux
On Friday, Mar 28, 2003, at 11:01 US/Pacific, Jerry LeVan wrote: Let's say that I want to use a command (e.g., md5) on a file. No problem; just use: system("md5 $file"); [..] Yeah, this probably has some holes... # to be safe, quote shell metacharacters $command =~ s/([;<>\*\|`&\$!#\(\)

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Cool Hand Luke
Hello All, I think I figured it out, (so far). I 'm pretty sure that it has to do with perl 5.003 disliking the looping with the "my $pair" syntax. As a work around, I changed this foreach my $pair (split(/[&;]/, $submission)) { # Convert plus to space $pair =~ y/+/ /;

IIS saves '.pl' file - not execute

2003-03-28 Thread Lenonardo
I have a simple Perl CGI script that reads a directory, displays two file lists filtered on extension. The user then selects a file from either list and the script calls another CGI script to process the file. The CGI script is working with POST method. I activate the request using a javascript

Re: accessing excel!

2003-03-28 Thread Lenonardo
[EMAIL PROTECTED] (Tim Fletcher) wrote in news:[EMAIL PROTECTED]: > hi all, > does anyone know how to access an excel sheet? > > $thanks On windows - use Win32:Ole. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The very un-useful 'premature end of script headers' error me ssage

2003-03-28 Thread Cool Hand Luke
> 1. You *MUST* examine the server's error log. "Prematue end of script > headers" is just a generic message put out by Apache when it couldn't find > the response header your script should have put out. Any error messages > output by Perl or your script will be found in the error log. Until you ca