Re: hashes and writing to file..

2004-06-19 Thread Randy W. Sims
On 6/19/2004 11:51 AM, Michelle Rogers wrote: Hello... I have just started using Perl because I wanted to use it for CGI.. I had been using Euphoria for stand-alone (http://www.rapideuphoria.com). I am trying to create a tutorial type web site, where students log in and receive instruction, based o

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.. #!/usr/bin/perl -w use CGI qw(:standard); use Storable; print "Content-type:text/html\n\n"; $sname=param('

Re: CPU load/server resources.

2004-07-13 Thread Randy W. Sims
On 7/13/2004 5:04 PM, Sara wrote: I had a script for which my previous host cancelled my account saying it's a resource hog and using more than 50% resources of the server (shared hosting). Yep, there were some faults in the script. I modified it and they restored the account. But now I am looking

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 c

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 2

Re: Extracting links.

2005-01-16 Thread Randy W. Sims
Sara wrote: I am trying to extract links along with HTML tags 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| http://www.mydomain.com";>http://www.mydomain.com/images/logo2.gif";> |; #ex

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 acc

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 $t

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 l

Re: BitVector in GET/POST Params

2004-04-01 Thread Randy W. Sims
On 4/2/2004 12:45 AM, Richard Heintze wrote: Let me rephrase that question: Is there a way I can store large integers (> 2**32) as character strings in radix 10 or radix 16 and covert these strings to and from bitvectors from which I can insert and extract individual bits? I think bitvector is the

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[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the valu