--- "K.L. Hayes" <[EMAIL PROTECTED]> wrote: > Hello Jonathan & All, > > Thank you for taking the time to answer. I "thought" that the $1 was > locally scoped but didn't want to "assume" it. Better not to assume > things with Perl has been my experience.
See my previous reply to your question. $1 is a built-in global and will not be "locally scoped" unless you declare it as such. > I don't fully understand the trinary operator. However I'll research > this tonight. Pseudo-code: if "x is true" ? do this : else do this; same as: if ( "x is true" ) { do this } else { do this instead } I tend to use trinary operators a lot. But don't use them if you don't like them. :) > My main concern was that I didn't want people to be able to gain any > access to my server using my form as a gateway. Is there a better way > to filter/secure input to my script when using CGI.pm? Is the input > automagically filtered when using CGI.pm? I'm not finding anything > about this subject in the CGI.pm docs. Am I not looking hard enough? CGI.pm does not filter anything for you (well, you can set the $CGI::POST_MAX variable to limit posting size, but that's not quite what you were asking). There has been some additional discussion of security regarding this lesson in my course. You can find this dicussion at http://www.perlmonks.org/index.pl?node_id=136655 and at http://www.perlmonks.org/index.pl?node_id=136864. These get a little deep, though. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]