RE: Packages, run modes, and scopes, oh my

2003-06-27 Thread Scot Robnett
I hadn't, but I have now. Thanks! Scot R. -Original Message- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 12:10 AM To: 'Scot Robnett'; [EMAIL PROTECTED] Subject: RE: Packages, run modes, and scopes, oh my Have you seen the tutorials at perlmonks? h

RE: Packages, run modes, and scopes, oh my

2003-06-27 Thread Charles K. Clarkson
Have you seen the tutorials at perlmonks? http://www.perlmonks.com/index.pl?node=Tutorials HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Packages, run modes, and scopes, oh my

2003-06-27 Thread Scot Robnett
I was wondering if anyone can point me to newbie-type tutorials on any of the following (including but not limited to which perldocs I can read): - Definition of 'lexical' and 'canonical' - Differences between 'my' and 'local' - Good overview of packages and namespaces

Re: http_referer question

2003-06-27 Thread anthony
Hi, Ok for example in my site, i send "internal mail" member 'email' other users, and it is kept in a database. But what about a user. copy the form, and a while loop keeping to send e-mail to overload the database,(put too much information), this is why yahoo, or hotmail when you join they put a

Re: saving a textarea to a text file

2003-06-27 Thread Bob X
I had to look hard for the missing > on that one! lol -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: saving a textarea to a text file

2003-06-27 Thread Andrew Brosnan
Yes, of course...I was testing you. On 6/27/03 at 1:18 PM, [EMAIL PROTECTED] (Camilo Gonzalez) wrote: > Study the third line closely. Andrew's code will not work. > > Charles K. Clarkson wrote: > > >Camilo Gonzalez <[EMAIL PROTECTED]> top posted: > >: > >: Andrew Brosnan wrote: > >: > >: >

Re: saving a textarea to a text file

2003-06-27 Thread Camilo Gonzalez
Study the third line closely. Andrew's code will not work. Charles K. Clarkson wrote: Camilo Gonzalez <[EMAIL PROTECTED]> top posted: : : Andrew Brosnan wrote: : : >use CGI; : >my $q = new CGI; : >my $record = $q-param('text_field'); : >open(OUTFILE, ">output.txt") or die "Can't

Re: Why not Class Objects

2003-06-27 Thread Ovid
--- "Daniel J. Rychlik" <[EMAIL PROTECTED]> wrote: > I have been a perl developer or about a year and half and I have a question. How > come perl does > not support the use of Class Objects ? Hi Dan, Much of Perl's OO support is currently clumsy. Perl has taken the "simplest thing that can

Re: http_referer question

2003-06-27 Thread Jon Hogue
what do you mean by overload? you should never trust data coming in from a webform. for example, if you are collecting a phone number and the data is in $phoneNumber.. do something like, $phoneNumber =~ s/.*(\d{3}-\d{3}-\d{4}).*/ or &handleError() if ( $phoneNumber !~ /^(\d{3}-\d{3}-\d{4})$/ );

Re: Why should I create an object?

2003-06-27 Thread Octavian Rasnita
You should create an object because you might import more modules in your application that export the param() function/method. In that case the program won't know which of those param() functions to use. I guess this is just one reason, but I am sure there are more. Teddy, Teddy's Center: http://t

Re: http_referer question

2003-06-27 Thread anthony
Hi. I have an idea, if someone creates an external program to overload my database, How do i prevent that, if all the fields are correct? Anthony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why not Class Objects

2003-06-27 Thread Daniel J. Rychlik
Thank you sir for the response, I will have a look. I love programming in perl, but Im getting used to the idea of developing class objects and instances in PHP. class thisclass { } class otherclass extends thisclass { } Object oriented programming is a great way to reuse code. I appreciate

RE: Why not Class Objects

2003-06-27 Thread wiggins
On Fri, 27 Jun 2003 09:01:59 -0500, "Daniel J. Rychlik" <[EMAIL PROTECTED]> wrote: > I have been a perl developer or about a year and half and I have a question. How > come perl does not support the use of Class Objects ? > What do you mean b

Why not Class Objects

2003-06-27 Thread Daniel J. Rychlik
I have been a perl developer or about a year and half and I have a question. How come perl does not support the use of Class Objects ? Thanks in Advance , Dan

Re: slash question

2003-06-27 Thread Jon Hogue
At 01:11 AM 6/27/2003 -0500, Nicholas Davey wrote: You could escape them. That usualy works for me. Example: $dir= "\/\/ITC\/home\/techs"; Yes I know how sloppy that looks, but if it works and doesnt matter, why worry bout it? you should quote things like they will be printed. it increases reada

RE: saving a textarea to a text file

2003-06-27 Thread Andrew Brosnan
On 6/27/03 at 1:33 AM, [EMAIL PROTECTED] (Charles K. Clarkson) wrote: > Camilo Gonzalez <[EMAIL PROTECTED]> top posted: > : > : Andrew Brosnan wrote: > : > : >use CGI; > : >my $q = new CGI; > : >my $record = $q-param('text_field'); > : >open(OUTFILE, ">output.txt") or die "Can't

Re: saving a textarea to a text file

2003-06-27 Thread Bob X
"Charles K. Clarkson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Besides the close, these look the same to me. How is > Andrews' solution wrong? > > : use CGI; > : my $q = new CGI; > : my $record = $q->param('text_field'); > : open(OUTFILE, ">output.txt") or d

RE: Why should I create an object? (long)

2003-06-27 Thread Charles K. Clarkson
Greenhalgh David <[EMAIL PROTECTED]> wrote: : : Bare in mind that I am still a beginner at coding. Why : is it "good practice" to create an object when using : CGI, rather than just diving in? : : For example: : : use CGI ':standard'; : my $q=new CGI; : my $input=$q->param('input'); : : and :

Re: saving a textarea to a text file

2003-06-27 Thread Jon Hogue
check out HTML::Normalizer at http://www.oclc.org/research/software/webutils/index.shtm At 10:14 PM 6/26/2003 -0400, Bob X wrote: How would I go about saving the textarea of an HTML page to a text file? Bob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL