Re: Some questions

2001-07-30 Thread Gabor Szabo
Hi Martin, You should start learning regular expressions e.g. by typing perldoc perlre or probably better with one of the Perl Books. Probably Learning Perl 3rd edition can be a good choice though I have seen only the 2nd yet. and now your examples: > > I want to know what this lines can mean

Re: COOKIES AGAIN...

2001-07-30 Thread Curtis Poe
--- Nigel Wetters <[EMAIL PROTECTED]> wrote: > One of our partners ran into a problem with load balancing on IIS. Each server set a >session > cookie, which eventually pushed the useful cookies out of the browser's store. Yet >another > reason why IIS isn't ready for enterprise-level solutions.

Re: Sendmail

2001-07-30 Thread Karthik Krishnamurthy
HELO, EHLO need the domain you are connecting from kat@graf-spee:~$ telnet localhost smtp Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 graf-spee.hn.extremix.net ESMTP Sendmail 8.11.3/8.11.3; Tue, 31 Jul 2001 08:17:58 +0530 helo 501 5.0.0 helo requires domain address

Re: Hash of hashes

2001-07-30 Thread fliptop
[reply posted to list] Camilo Gonzalez wrote: > > Yes, Fliptop. I wrote that in my orignal email. Would appreciate any advice > in that regard. ok, good. now, what is in the @model array? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Embedding HTML in XML - Slightly OT

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, David Simcik wrote: > I think this is a relatively simple question, but it has puzzled me a bit > lately. How does one embed fully marked up HTML "data" into an XML document > without accidentally parsing the HTML??? This is probably deceptively > simple, but I haven't

Some questions

2001-07-30 Thread Martin Richard
Hi! I want to know what this lines can mean. I have a lot of lines like that to understand. s/à/a/g $qte1 =~ /\s*//g ; $usager =~ s/-/_/g ; $ppa =~ /o/i Thanks a lot Martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Hash of hashes

2001-07-30 Thread Peter Cornelius
It's tough to say from the code you have here. Have you tried printing out $i, $key and all of $model to make sure they all have the values you expect? I would run this through perl with the -d option to watch the values as they change. If you haven't used the perl debugger before it's not hard

Re: Hash of hashes

2001-07-30 Thread fliptop
Camilo Gonzalez wrote: > > Fliptop, > > Haven't studied all of CGI.pm's capability's yet. Is there an easier way to > build a hash of hashes using it? i was just wondering. is that what you're trying to do? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Embedding HTML in XML - Slightly OT

2001-07-30 Thread David Simcik
Hey folks, I think this is a relatively simple question, but it has puzzled me a bit lately. How does one embed fully marked up HTML "data" into an XML document without accidentally parsing the HTML??? This is probably deceptively simple, but I haven't a clue. ;-) Thanks, DTS -- To uns

RE: Hash of hashes

2001-07-30 Thread Camilo Gonzalez
Peter, Thank you for your very useful response. It seems to have addressed the @data problem but I'm still having a problem with $model[$i] not printing or holding a value. May I pick your brain once more? -Original Message- From: Peter Cornelius [mailto:[EMAIL PROTECTED]] Sent: Monday,

Re: Sendmail

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, Adam Carson wrote: > If you are suggesting that I use Mail::sendmail instead (are you?), > the reason is that I got this code from Novell's website and it seemed > to be a useful and easy to understand piece of code. As a perl > beginner, I also thought that understanding th

Re: Sendmail

2001-07-30 Thread Adam Carson
Yes, I am. If you are suggesting that I use Mail::sendmail instead (are you?), the reason is that I got this code from Novell's website and it seemed to be a useful and easy to understand piece of code. As a perl beginner, I also thought that understanding the process might be useful in the fu

Re: Sendmail

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, Adam Carson wrote: > I have been trying to get a version of sendmail to send results from a > form, and after finally getting all my addresses and formatting right, > my mailserver gives me an error about not using the HELO protocol: > > X-Authentication-Warning: mail.server.

Sendmail

2001-07-30 Thread Adam Carson
I have been trying to get a version of sendmail to send results from a form, and after finally getting all my addresses and formatting right, my mailserver gives me an error about not using the HELO protocol: X-Authentication-Warning: mail.server.IP.address: [the.user's.IP.address] did

RE: Hash of hashes

2001-07-30 Thread Camilo Gonzalez
Fliptop, Haven't studied all of CGI.pm's capability's yet. Is there an easier way to build a hash of hashes using it? -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 11:46 AM To: Camilo Gonzalez Cc: '[EMAIL PROTECTED]' Subject: Re: Hash of hashes

RE: matching on a variable

2001-07-30 Thread Peter Cornelius
> How can I test whether a person's name (which is the variable called > $vars::name) is in a particular file ( "links.dat")? The > file is simply a > list of names all separated by the newline character, i.e, > > Harry\n > Joe\n > Jane Doe\n > > When I change my pattern-to-match to the litera

Re: matching on a variable

2001-07-30 Thread Lisa Nyman
Hi, Have you printed the variable $vars::name to be sure it contains what you think it does? Also, try the grep command: open(LINKS, "$statedir/links.dat") or die "Error at LINKS: $!\n" my @all_matches = grep (/$vars::name/, ); &print_link (@all_matches) You can use arguments to grep to get in

RE: Hash of hashes

2001-07-30 Thread Peter Cornelius
>This is the code that fails me: > > $i=0; > for $fields(split /&/, @data) { > ($key, $value) = split /=/, $fields; > $bigData{$model[$i]}{$key} = "$value"; > $i++; > } > > It won't print out @data or @model f

Re: matching on a variable

2001-07-30 Thread fliptop
[EMAIL PROTECTED] wrote: > > ### > open(LINKS, "$statedir/links.dat") || die "Error at LINKS: $!"; > @people = ; > $pattern_to_match = "$vars::name"; #$vars::name is Harry, but the code where are you declaring $vars::name? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Hash of hashes

2001-07-30 Thread fliptop
Camilo Gonzalez wrote: > > $i=0; > for $fields(split /&/, @data) { > ($key, $value) = split /=/, $fields; > $bigData{$model[$i]}{$key} = "$value"; > $i++; > } why do i get the feeling when i look at this code that this p

matching on a variable

2001-07-30 Thread sabrina
Hi List, How can I test whether a person's name (which is the variable called $vars::name) is in a particular file ( "links.dat")? The file is simply a list of names all separated by the newline character, i.e, Harry\n Joe\n Jane Doe\n When I change my pattern-to-match to the literal string I'

Hash of hashes

2001-07-30 Thread Camilo Gonzalez
Fellow PERLians, Thanks so much for all your help in advance. I have a rather vexing problem. I'm trying to construct a hash of hashes from data sent to a script from a form. I've already parsed the arrays @data and @model to the point I want them. This is the code that fails me:

solution to mail taint problems

2001-07-30 Thread Ryan Davis/Pamela Karr
For those of you trying to get your CGI's to send mail AND use -T, here's the solution I found, and for those of you who know what they're doing, please let me know if I have any gaping security holes here. First, create a small shell script that looks like this: #!/usr/bin/sh /usr/bin/mail

Re: Question about subs and functions

2001-07-30 Thread Abdulaziz Ghuloum
Hello, If you create a sub that takes its input from a global variable then you get into 2 problems: 1. You cannot use recursion in your program since all recursed subs will work on the same data which will be a pain to debug or verify correctness. 2. Higher error probability since you have t