Re: Taint mode and SQL

2006-03-25 Thread Tom Phoenix
On 3/25/06, Tom Allison <[EMAIL PROTECTED]> wrote: > I would have expected this to require me to do something to untaint the > value in $username. Think of taint checking as a big safety net with holes in it. It's better than no net at all, but it's not perfect safety. > Doesn't this lead to SQL

Tk place geometry mng

2006-03-25 Thread Walter Copenhaver
I made an application using Perl::Tk and I used the $wid->place(args) for my geometry manager. At my desktop the application works fine, but when I ran this in my laptop, the widget placement is all wrong. I mean the window looks all deform and the widgets are not in the place where they belong.

Re: Taint mode and SQL

2006-03-25 Thread Chris Charley
- Original Message - From: "Tom Allison" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "beginners perl" Sent: Saturday, March 25, 2006 1:33 PM Subject: Taint mode and SQL I was looking at some code of mine and it seems that there is a potential for a problem here that I wasn't

Taint mode and SQL

2006-03-25 Thread Tom Allison
I was looking at some code of mine and it seems that there is a potential for a problem here that I wasn't aware of. I'm using CGI and DBI together and found that I can do the following under Taint just fine. my $username = $q->param('username'); and later one... my $sql = "select .. from ..

Re: SMS or text messaging

2006-03-25 Thread Frank Bax
At 07:11 AM 3/25/06, Tom Allison wrote: I'm pretty familiar with some (or enough) of the perl mail modules to send email whereever and however I need to. I'm trying to understand how this relates to text messages on cell phones. I've used email for sending text messages to pagers ([EMAIL PROT

Re: And a CGI question.

2006-03-25 Thread Tom Phoenix
On 3/25/06, Tom Allison <[EMAIL PROTECTED]> wrote: > If I have a cgi script that send text/plain what does the client see if I > send > all the text at once but then don't exit for seconds because I'm doing some > background processing at my end? do they sit and spin around in circles? What ha

And a CGI question.

2006-03-25 Thread Tom Allison
If I have a cgi script that send text/plain what does the client see if I send all the text at once but then don't exit for seconds because I'm doing some background processing at my end? do they sit and spin around in circles? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: about return value

2006-03-25 Thread Mr. Shawn H. Corey
Practical Perl wrote: Hi,list, When a subroutine return a value,for example,this value is a pointer to an array,which is get defined in this subroutine.When out of the subroutine,some a statement call this subroutine and receive the return value to a variable named as $aaa.Is $aaa a duplicate of

SMS or text messaging

2006-03-25 Thread Tom Allison
I'm pretty familiar with some (or enough) of the perl mail modules to send email whereever and however I need to. I'm trying to understand how this relates to text messages on cell phones. I've used email for sending text messages to pagers ([EMAIL PROTECTED]) but I don't know if the same appl

Re: search and replace content of file - pattern: hash

2006-03-25 Thread Jeff Pang
>Hello, >I would like to search content of file and as a pattern to use hash, but >I can't find out how to do that. > >Situation: >%hash = ( "key1" => "value1", > ... > "keyn" => "valuen"); > Hello, Here it's easy to access the hash's value via its key,simply as: $hash{"key1"}; I t

search and replace content of file - pattern: hash

2006-03-25 Thread Varga Pavol
Hello, I would like to search content of file and as a pattern to use hash, but I can't find out how to do that. Situation: %hash = ( "key1" => "value1", ... "keyn" => "valuen"); open (FILE, "file.txt"); open (TMP, ">file.txt.renamed"); while (){ s/key1/value1/;

about return value

2006-03-25 Thread Practical Perl
Hi,list, When a subroutine return a value,for example,this value is a pointer to an array,which is get defined in this subroutine.When out of the subroutine,some a statement call this subroutine and receive the return value to a variable named as $aaa.Is $aaa a duplicate of the pointer in that sub