what is the best / latest .CGI to handle safe form parsing?

2008-11-17 Thread Lou Hernsen
what is the best / latest .CGI to handle safe form parsing? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Testing an array for a match

2008-04-09 Thread Lou Hernsen
Hallo I have an array @Treasures and I want to match anywhere in it for /:1:2:3:/ can I if (@Treasures =~ /:1:2:3:/){} or do i have to change (@Treasures to $Treasures and then $Treasures = @Treasures ; if ($Treasures =~ /:1:2:3:/){} Just thought I'd ask first, I have to take mother in law to Dr.

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Lou Hernsen
Hallo I'm just an amature perl writer.. but I would think that using the m// (match) would help. somthing like # $CONFIG{'Feedback'} = the body of the message, change to whatever it is in the program if ($CONFIG{'Feedback'} =~ /href=|http:/i ) #i = ignore case { # reject code goes here exi

Re: FLOCK

2007-05-29 Thread Lou Hernsen
sy made that up but it looks like the perl code I see ... super secret coded perl so I use semephore files and flock...maybe it will help you. Lou Hernsen - Original Message - From: "Akbar Ehsan" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 29, 2007 4:33 PM Subject:

-e question

2006-12-15 Thread Lou Hernsen
I use the -e to check to see if a file is present if (-e "$Pics/$Game{Page}.jpg") { } Question I can get it to work looking for .pl and .gif but not .jpg I have checked all the directorie vars and even did this print qq||; print qq||; print qq||; print qq||; print qq||; print

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Lou Hernsen
e the time right now to learn a new language. Rev. Lou Hernsen self employed - Original Message - From: "Paul Archer" <[EMAIL PROTECTED]> To: "Derek Ash" <[EMAIL PROTECTED]> Cc: Sent: Friday, September 01, 2006 10:07 AM Subject: Re: figuring out if a numbe

Re: Regex Help.

2006-06-24 Thread Lou Hernsen
and if I want to include certain german umlutted vowels like ö and ä i would add them like this? $string =~ tr/-_a-zA-Z0-9öä//cd; then what does this do? (from parsing SDTIN) $name =~ tr/+/ /; ### I know this replaces +'s for spaces $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($

FTP from my web ssite question

2006-03-14 Thread Lou Hernsen
Hallo I would like to offer my guest a way to download fonts and art from my web site... I use perl / cgi's to create my HTML web pages. What is the CGI code that creates the link to allow people to do this? I'll even use a modual if I have to.. as I am more commfortable with them now. Thanks Lou

Re: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Lou Hernsen
I did some testing tonight when I take out use stats; and take out stats; the program runs perfect. and the stats.pm runs just fine in my editor. so what the command to run the mod in it entirity? or does it have to be run as one big subroutine? I will experient with that tommorrow Lou --

Re: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Lou Hernsen
- Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Monday, November 28, 2005 3:10 PM Subject: RE: Lou's Code - need a little more help on mod questions. > Lou Hernsen <mailto:[EMAIL PROTECTED]> wrote: > > : Bareword &q

Lou's Code - need a little more help on mod questions.

2005-11-28 Thread Lou Hernsen
OK... I have put the mod in the same dir as the main prog. chmod 644 on mod chmod 755 on main however there is an error. the mod does nothing more that produce HTML and a few calculations. the mod works fine with out error in my editor. however the main program does not like how I call stats.pm i

Re: our..... Lou's code

2005-11-28 Thread Lou Hernsen
- Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "Lou Hernsen" <[EMAIL PROTECTED]> Cc: Sent: Sunday, November 27, 2005 12:36 PM Subject: Re: our.. > Lou Hernsen wrote: > > ok after reading about "our" > >

Modules update

2005-11-27 Thread Lou Hernsen
since $Speed is the output i have to call on the sub in the mod as $Speed = stats::Speed($Spy,$Army,$Hero,$Horse,$Wagon); and pass the vars to the mod and in the mod return $Speed; I also discovered the mod will print HTML code with out returning it. Now i have to experiment with the workings of

our..

2005-11-27 Thread Lou Hernsen
ok after reading about "our" fact: I use all global vars in the main program. conclusion I need to list all the vars in the module as our in main my $foo in mod our $foo this will allow the vars to be used by both programs? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
#x27;t get this to work I'll just leave the sub Stats() in each program and not worry about it. Thanks Lou - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 12:46 AM Subject: RE: Need help with making a Modules

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
This small piece of the Stats sub calculates the speed at which you are traveling. I have in the main program. use stats and I call on it just like a regular sub Speed(); or should it be stats::Speed; When I call on the entire mod, i want the whole thing to run. I could just put all the sub

Need help with making a Modules

2005-11-27 Thread Lou Hernsen
I am studying modules.. I am seeking a mentor to help. I have very simple questions like ... Do I need to pass vars into the mod? Do i need to declare vars in the mod? What is "our"? something like "my" and "local"? Do I need to return vars? The code I am writing creates part of a web page, so I c