Book Recommendation: Secure web programming ?

2005-10-04 Thread Randy W. Sims
I know perl. I know some basics of web/CGI programming, but haven't done anything where security really matters. Could anyone recommend books or references that discuss real-world web programming, that show the right way to create secure sites? Topics like creating logins, varying levels of

Re: Extracting links.

2005-01-16 Thread Randy W. Sims
Sara wrote: I am trying to extract links along with HTML tags a href=blah from a list, but it's not working on my XP machine with Active State Perl 5.0.6 Kindly help. # CODE START my @array = qq| bodya href=http://www.mydomain.com;img alt=Free Hosting,

Re: Use Strict

2005-01-13 Thread Randy W. Sims
Graeme St. Clair wrote: In accordance with The Rules, I added use strict use warnings to a script invoked from a browser page on the same machine. Last time I did this, as soon as I used the browser page, Apache 'error.log' promptly showed scads of msgs along the lines of '[Wed Dec 08 11:03:52

Re: A simple request need help

2004-08-18 Thread Randy W. Sims
On 8/19/2004 12:06 AM, Bee wrote: Hi, I have a script that ables to download sort of web pages automatically by certain time. I use LWP::UserAgent to get almostly my job done, but this time, I have a problem that the page require to send back cookies and http_referer... It there anyway I can

Re: hashes and writing to file..

2004-06-19 Thread Randy W. Sims
On 6/19/2004 12:37 PM, Michelle Rogers wrote: ok..still not working..maybe if i do it this way.. What exactly is not working? Are you getting an error? here's the code i have for storing.. snip #!/usr/bin/perl -w use CGI qw(:standard); use Storable; print Content-type:text/html\n\n;

Re: Problems declaring variables in external packages

2004-04-18 Thread Randy W. Sims
Wiggins d'Anconia wrote: Richard Heintze wrote: I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join(, map { qq[td$_/td] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the

Re: How to undine a value

2004-04-01 Thread Randy W. Sims
On 4/1/2004 11:46 PM, Richard Heintze wrote: I find I'm undefining variables my assigning an unitialized variable to defined value to make it undefined (as exemplified below). Is there a better way to do this? my $k; for($i = 0; $i $c; $i++){ if ( defined $k ){ print $x[$k]; my

Re: Passing arrays by reference

2004-04-01 Thread Randy W. Sims
On 4/1/2004 11:39 PM, Richard Heintze wrote: I'm trying to index into some function parameters that are passed as array references. Is strategy #1 (see below) identical to strategy #2? I thought so. I had a bug I that I fixed by recoding strategy #1 as strategy #2 and it fixed the problem. This