OT: RE: RE: Running Apache behind LinkSys Router

2003-12-18 Thread jon
-Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:33 AM To: 'Gohaku'; 'beginners-cgi' Subject: OT: RE: Running Apache behind LinkSys Router > > Hi everyone, > I don't know if this is the right group to ask this but I have been > try

RE: Escaping quotes in variable content

2004-05-12 Thread jon
> print "http://www.somewhere.com\";>\n"; > print "value=\"$frage_text\" />\n"; > print "\n"; This wasn't really the question, but... If you have to write html within perl, use qq( ) instead of "". It's a lot easier to read, and much less error prone. ie, print qq( http://www.somewhere.com"

Re: starting perl

2004-05-03 Thread jon
> from a casual glance, i'd say the 1st escaping backslash should not have a > space after it (you want to escape the double quote, not the space). > try this instead. a little easier to read, and less error prone. c:\> perl -w -e "print qq( Hello, World!\n ); " -- To unsubscribe, e-mail: [E

File Types

2001-09-06 Thread Jon
ome in as "application/octet-stream" occasionally and will not go back to being "plain/text" unless I reboot my Windows machine. Does this sound familiar to anyone? ::Jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Chemistry: Empirical and Molecular fomula?

2005-09-26 Thread Jon Pettersen
Hi. I have just started to look at Perl Running version Active Perl 5.8.7.813 on Windows XP. I am trying to program a script/program ( to run in command prompt)to calculate empirical and molecular formulas . Percentage of f.ex C and H is given and the empirical formula is printed on the screen. F

RE: [CGI] Hide Source?

2001-12-21 Thread Jon Lucenius
Hmmm - here is an interesting idea on the HTML source side of things, but realize that HTTP servers were meant to serve documents and browsers built to know and interpret and reveal the sources thereof. That said... Some people "right click" and use the pop-up menu when trying to view a source, y

Re: Generating for loop paterns HELP!

2002-02-14 Thread Jon Molin
This smells homework! /jon Bruce Ambraal wrote: > > Hi > > I have done (b) for coding see below, could someone assist with > (a) (b) (d) > > #!/usr/local/bin/perl -w > my $num_rows; > my $i; > my $r; > > $num_rows = ; > > for ($r = 1; $r <=

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

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

2003-11-11 Thread Jon Barnhardt
sorry about that, using a custom utility to check this account. Didn't realize it was not replying to all! :-) Jon -Original Message- From: Andrew Gaffney [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 1:00 PM To: Jon Barnhardt

Re: converting MS access DB to mysql

2001-06-19 Thread Jon Farmer
d with MySQL get the ODBC driver and link the tables. Regards Jon Farmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07050 603720 PGP Key Available