Re: Simple cgi email

2010-02-02 Thread Uri Guttman
> "RH" == Robert H writes: RH> I am just trying to do a simple emailer for a site. I came up with the RH> following and was wondering if there are any security issues that jump RH> out. check out NMS versions of the classic cgi mail script. it works and it is secure. don't reinvent t

Simple cgi email

2010-02-02 Thread Robert H
I am just trying to do a simple emailer for a site. I came up with the following and was wondering if there are any security issues that jump out. I don't have the option of using anything from cpan for the most part. Bob = #!/usr/bin/perl -T use strict; use warnings; use

Re: list guidelines?

2010-02-02 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> Uri Guttman wrote: >> i think we need to come up with a set of guidelines for this list. this >> would be autoposted a few times a week and possibly to every new address >> seen. it would cover things to do before posting (check the faq, etc.),

Re: list guidelines?

2010-02-02 Thread Shawn H Corey
Uri Guttman wrote: > i think we need to come up with a set of guidelines for this list. this > would be autoposted a few times a week and possibly to every new address > seen. it would cover things to do before posting (check the faq, etc.), > how to post (bottom posting, style, posting all your re

list guidelines?

2010-02-02 Thread Uri Guttman
i think we need to come up with a set of guidelines for this list. this would be autoposted a few times a week and possibly to every new address seen. it would cover things to do before posting (check the faq, etc.), how to post (bottom posting, style, posting all your relevent code, etc.), list d

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Erez! On Tuesday 02 Feb 2010 15:20:16 Erez Schatz wrote: > On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. > > Are you physically unable to say anything in a social manner? > I apologise for writing my posts in a rude manner. See below for my response. > > <<< > > my %hash = (

Re: libwww question (used CAs) + packages

2010-02-02 Thread Stanisław T. Findeisen
Shlomi Fish wrote: > Hi Stanisław! > > On Tuesday 02 Feb 2010 11:47:35 Stanisław T. Findeisen wrote: >> Please, can anyone help me with this? I tried on lib...@perl.org list but >> with no luck (so far). >> >> I'd like to restrict the set of CAs LWP is using for SSL connections. >> >> Also what do

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. Are you physically unable to say anything in a social manner? > > <<< > my %hash = (3 => <<"EOF"); > > > > > This is called a cross-site scripting attack ( > http://en.wikipedia.org/wiki/Cross-site_s

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:12:01 Erez Schatz wrote: > On 2 February 2010 09:19, venu madhav wrote: > >I've a situation where I create a hash variable in PERL and > > use it in Java script which is embedded in the CGI. The key for that > > hash is taken from JavaScript. For ex: > > > >

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:00:26 Erez Schatz wrote: > On 2 February 2010 13:46, Shlomi Fish wrote: > > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > > > http://perl.org.il/misc.html#pl_vs_pl > > What does have got to do with the question? > It doesn't, but it was a mista

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 09:19, venu madhav wrote: >        I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: > > - CGI code > my %hash{3}=300; > --JScript code--- > var

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 13:46, Shlomi Fish wrote: > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > http://perl.org.il/misc.html#pl_vs_pl What does have got to do with the question? > > Please go to http://perl-begin.org/ and find a good resource to learn Perl. To > qoute Mark J

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Venu! On Tuesday 02 Feb 2010 09:19:27 venu madhav wrote: > Hi All, > I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: Regarding "PERL" - it's either "perl" or "Per

How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread venu madhav
Hi All, I've a situation where I create a hash variable in PERL and use it in Java script which is embedded in the CGI. The key for that hash is taken from JavaScript. For ex: - CGI code my %hash{3}=300; --JScript code--- var var1 = 3; var variable = $hash{var1}; --

Re: libwww question (used CAs) + packages

2010-02-02 Thread Shlomi Fish
Hi Stanisław! On Tuesday 02 Feb 2010 11:47:35 Stanisław T. Findeisen wrote: > Please, can anyone help me with this? I tried on lib...@perl.org list but > with no luck (so far). > > I'd like to restrict the set of CAs LWP is using for SSL connections. > > Also what does this: "The Crypt::SSLeay p

libwww question (used CAs) + packages

2010-02-02 Thread Stanisław T. Findeisen
Please, can anyone help me with this? I tried on lib...@perl.org list but with no luck (so far). I'd like to restrict the set of CAs LWP is using for SSL connections. Also what does this: "The Crypt::SSLeay package provides Net::SSL" (http://search.cpan.org/~dland/Crypt-SSLeay-0.57/SSLeay.pm) m

Re: prepare(SELECT ... FROM TABLE) error

2010-02-02 Thread 7
On Mon, Feb 1, 2010 at 1:40 PM, Tony Esposito wrote: > Is this the idea? I do not ever want to catch the error from the prepare > statement itsel > I thought you said the program fails if you don't catch the error? If so, and you want your program to continue executing, then you have to catch