Re: Perl line breaks

2003-08-14 Thread Jon Hogue
...and you don't need to print the HTML header in the BEGIN {} block. You can just print it at the top of the perl program or in the middle of the program but before anything else is printed. if something is dieing in a module you are loading, you will never know about it because it will never ge

Re: PHP vs Perl

2003-07-27 Thread Jon Hogue
With CGI::FormBuilder, I couldn't imagine CGI being any easier... For most CGI programs, Formbuilder can increase your speed of development and clarity of code by 10 fold. Plus, Perl's got Larry Wall. And training on cruise ships in Hawaii. 'nuff said. :-) At 07:55 PM 7/27/2003 +0300, Octavian

Re: sending mail to a group using perl

2003-07-08 Thread Jon Hogue
Is this a global group or one you've set up for your personal use? At 05:37 AM 7/8/2003 +, Sally Librilla wrote: Hi, I'm send email using the Mail::SendMail module. I understand how the send To field works for multiple works however, I can't get it to work to send mail to a group existing i

Re: Regex question.

2003-07-01 Thread Jon Hogue
1- my $number =~ s/^0*(\d+)/$1/ that should trim the leading 0's 2- my $date =~ s#(\d{2})(\d{2})(\d{4})#$1/$2/$3#; i use #'s as delimaters here... some other character may be more appropriate At 07:49 AM 6/26/2003 -0700, Sara wrote: I have a database with the following fields. lname fnam M acct

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: 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 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