Re: question about uninitialized variable

2003-03-09 Thread drieux
On Friday, Mar 7, 2003, at 10:42 US/Pacific, Tony Bandy wrote: [..] Just a beginning test page where the end-user submits a name and gets a page back with that name in it. The page works,however, the warning I keep getting is: Use of uninitialized value in concatenation (.) or string... that

persistent connection

2003-03-09 Thread uma ramdoss
hai, i am writing a simple browser using LWP::UserAgent i dont know how to make persistent connection. i think LWP sends connection-close header by default. i used keepalive header but no use. can anyone help with code? Thank You. -uma __ Do

last and grep - was: Re: Test for empty list

2003-03-09 Thread Katy Brownfield
On Sat, 08 Mar 2003 17:31:08 -0800, R. Joseph Newton [EMAIL PROTECTED] wrote: Scott R. Godin wrote: #!/usr/bin/perl -w use strict; my @array = ('', 0, , 1); my $hasTruth; foreach (@array) { if ($_ ){ $hasTruth = yezzindeedydo!; last; } } if ($hasTruth) {print $hasTruth

Re: why objects?

2003-03-09 Thread Katy Brownfield
On Fri, 7 Mar 2003 07:56:29 -0800 (PST), Paul [EMAIL PROTECTED] wrote: --- Dan Muey [EMAIL PROTECTED] wrote: () - easier for other people to maintain even years from now - easier to migrate and expand () Agreed, agreed, agreed, agreed, and agreed, but they don't take my word for it. I need

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread Mr. Horace Franklin Jr.
Good idea thanks! - Original Message - From: Dan Muey [EMAIL PROTECTED] To: Mr. Horace Franklin Jr. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:37 AM Subject: RE: CG I Script [guestbook.cgi] I tired to run the script below on my host server and it

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread Mr. Horace Franklin Jr.
I will add this line to my script, run it and let you know the 'exact errors' I am receiving. CGI::Carp qw(fatalsToBrowser);. - Original Message - From: Hanson, Rob [EMAIL PROTECTED] To: 'Mr. Horace Franklin Jr.' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:43 AM

Intranet page to manage print jobs

2003-03-09 Thread Todd Hemsell
Good Morning, First of all I am not a Programmer. My total experience with Perl consists of finding free scripts on the web and slightly modifying them for my specific task. I have been searching vainly for a script or an example of a script that will let my users manage print jobs on a AIX

Re: explicit package?

2003-03-09 Thread Mr. Horace Franklin Jr.
Good Idea Thanks! - Original Message - From: R. Joseph Newton [EMAIL PROTECTED] To: Mr. Horace Franklin Jr. [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 1:34 PM Subject: Re: explicit package? Mr. Horace Franklin Jr. wrote: When I used the script.

Re: explicit package?

2003-03-09 Thread Mr. Horace Franklin Jr.
Good information, thanks. - Original Message - From: Wiggins d'Anconia [EMAIL PROTECTED] To: Mr. Horace Franklin Jr. [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 1:27 PM Subject: Re: explicit package? Mr. Horace Franklin Jr. wrote: I used the script,

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread Mr. Horace Franklin Jr.
Rob, I received the following error when I ran the script guestbook.cgi: Software error: Modification of a read-only value attempted at /usr/lib/perl5/5.6.1/vars.pm line 40. BEGIN failed--compilation aborted at cgi_guestbook.cgi line 18. guestbook.cgi has too many errors. How can I look at the

Re: Double post ability

2003-03-09 Thread Dennis LaPine
I don't know why I waste my time posting the few questions that I have. This is a beginners list is it not? A question asked, should not be answered with another question. I'm not surprised in the response I got, but thought I'd try and get an answer from some seasoned people. Dennis -

Installation problems Perl/Tk...

2003-03-09 Thread Pontus Leitzler
Hi, I have a rather big problem with my perl installation, Im running perl at a Debian box.. When I run my script with use Tk; it sais: Can't locate Tk.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0

Re: Double post ability

2003-03-09 Thread Randal L. Schwartz
Dennis == Dennis Lapine [EMAIL PROTECTED] writes: Dennis I have a discussion board that works quite well. I want to be Dennis able to have it post to two pages, instead of one. Can this be Dennis achieved by a comma separate in the cfg file that runs the Dennis script? Am I on the right track

Re: Double post ability

2003-03-09 Thread R. Joseph Newton
Dennis LaPine wrote: I don't know why I waste my time posting the few questions that I have. This is a beginners list is it not? A question asked, should not be answered with another question. I'm not surprised in the response I got, but thought I'd try and get an answer from some seasoned

Re: Intranet page to manage print jobs

2003-03-09 Thread R. Joseph Newton
Todd Hemsell wrote: Good Morning, First of all I am not a Programmer. My total experience with Perl consists of finding free scripts on the web and slightly modifying them for my specific task. I have been searching vainly for a script or an example of a script that will let my users

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread Mr. Horace Franklin Jr.
Rob, Disregard the email below. I have one error: Software Error: Can't find string terminator E_FORM anywhere before EOF at cgi_guestbook.cgi line 205. The code looks good to me. What does this error mean? Horace - Original Message - From: Mr. Horace Franklin Jr. [EMAIL PROTECTED]

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread R. Joseph Newton
Mr. Horace Franklin Jr. wrote: Rob, Disregard the email below. I have one error: Software Error: Can't find string terminator E_FORM anywhere before EOF at cgi_guestbook.cgi line 205. The code looks good to me. What does this error mean? Horace Is this the first error message

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread Rob Dixon
Mr. Horace Franklin Jr. wrote: Rob, Disregard the email below. I have one error: Software Error: Can't find string terminator E_FORM anywhere before EOF at cgi_guestbook.cgi line 205. The code looks good to me. What does this error mean? Horace. This is your code from lines 205

Re: Double post ability

2003-03-09 Thread Rob Dixon
Dennis Lapine wrote: I don't know why I waste my time posting the few questions that I have. This is a beginners list is it not? A question asked, should not be answered with another question. I'm not surprised in the response I got, but thought I'd try and get an answer from some seasoned

Odd number of elements in hash assignment

2003-03-09 Thread Deb
Still struggling with multilevel hashes. Below is my code snippet, obligatory use statments are in effect. I don't understand the error. Line 52 refers to the line %hrLists assignment - Where did I go wrong? Thanks, deb while (DATA) { chomp; ($listname, $field) = split(/:/, $_);

Re: Odd number of elements in hash assignment

2003-03-09 Thread Steve Grazzini
Deb [EMAIL PROTECTED] writes: Still struggling with multilevel hashes. snip while (DATA) { chomp; ($listname, $field) = split(/:/, $_); print \nListname is $listname,\nField is: $field\n; %hrLists = split(/\s+/, $field); $Lists{$listname} = \%hrLists; } __DATA__

RE: How to check ASCII chars in perl ?

2003-03-09 Thread Madhu Reddy
i don't thing the above will work. try: for(split(//)){ if(ord 32 || ord 126){ print Char is non printable char\n; }else{ print $_\n; } } I want to do following, if any char is ASCII value of 10 or 13, i want to make that char as null like following $_ = hello\n\t\r world;

Check url for form submission

2003-03-09 Thread Johnstone, Colin
Gidday All, I have found this subroutine in someone else's program I need to modify it so it will work on my server. I wish to use it to confirm that only forms submiited from my Domain will be processed. Its the reg ex I don't understand, Can someone help me re-write it. Is it as simple as

Re: Odd number of elements in hash assignment

2003-03-09 Thread Deb
Thanks for the quick reply... Okay, I could use Data::Dumper, but what do you mean by empty leading field? Am I dense? (probably!) I don't really want to use D::D module, so what would I do to alleviate this? Ensure no leading white space? I'll have to give that a try (but my kids are not

Re: Odd number of elements in hash assignment

2003-03-09 Thread Deb
All, Replying to my own post - yup, that did it. I removed the leading space(s), then did the hash ref assignment, and all was well. Whew! Thanks for the tip - and the pointer that I should have checked the docs... sometimes the problem is that I'm just not sure *which* doc would have the

Re: Odd number of elements in hash assignment

2003-03-09 Thread R. Joseph Newton
Deb wrote: Thanks for the quick reply... Okay, I could use Data::Dumper, but what do you mean by empty leading field? Am I dense? (probably!) I don't really want to use D::D module, so what would I do to alleviate this? Ensure no leading white space? I'll have to give that a try (but

Re: CG I Script [guestbook.cgi]

2003-03-09 Thread R. Joseph Newton
Rob Dixon wrote: Mr. Horace Franklin Jr. wrote: Rob, Disregard the email below. I have one error: Software Error: Can't find string terminator E_FORM anywhere before EOF at cgi_guestbook.cgi line 205. The code looks good to me. What does this error mean? Horace. This is

Parse Microsoft Publisher files?

2003-03-09 Thread Kevin Old
Hello everyone, I've searched all over and haven't found anyway to parse Microsoft Publisher files with Perl. I couldn't find anything on CPAN related to it. I thought that since there was the Spreadsheet::WriteExcel module, that there might be a module for Publisher. Any help is appreciated.

Re: Double post ability

2003-03-09 Thread Randal L. Schwartz
Dennis == Dennis Lapine [EMAIL PROTECTED] writes: Dennis I don't know why I waste my time posting the few questions Dennis that I have. This is a beginners list is it not? A question Dennis asked, should not be answered with another question. I'm not Dennis surprised in the response I got, but