[OT] Re: First and second rate programmers

2002-06-05 Thread John Brooking
On Wednesday, June 5, 2002, at 08:40 , Ovid wrote: [..] > > First-rate mathematicians want to hang around first-rate > mathematicians. Second-rate mathematicians want to hang > around third-rate mathematicians. > > The reason for that is left as an exercise for the reader :) So, i

Re: Perl/CGI mysql book

2002-06-05 Thread Gregory Bertz
Oreilly "Programming the Perl DBI" is a good one also "Managing and Using MySQL" also an Oreilly book... Maureen E Fischer wrote: > I am writing my first CGI application and after analysis of the data > structure that is required I determined that a DBM file would not be > sufficient. Mysql was

Re: Perl/CGI mysql book

2002-06-05 Thread charles
My personal opinion is that cutom databases are very easy to create in a perl script and usually run faster and more efficient than cumbersome packages. there are many perl freebies out there to start you in the right direction and will also serve as a better learning tool. basically a database is

RE: Perl/CGI Website Ideas

2002-06-05 Thread John Pitchko
Yes thank you, those were/are the books I am working through at work. I guess, to be more specific, I am not looking to the syntax of it, but more of some design techniques and site authoring guidelines for Perl/CGI websites. >>> "Scot Robnett" <[EMAIL PROTECTED]> 06/05/02 02:49pm >>> The best

Re: First and second rate programmers

2002-06-05 Thread charles
I don't think that "use strict" is necessary in a finished script. I think anything that takes up machine cycles and isn't needed in the finished script should remain mobile and this is probably the main reason they keep it mobileyou might say "but how many macine cycles could it possibly

RE: Perl/CGI Website Ideas

2002-06-05 Thread Scot Robnett
The best place to start is with the books "Learning Perl" and "CGI Programming with Perl" (you can find them on www.oreilly.com). Check out this site, www.pm.org to find a Perl Mongers user group near you. You can see what other people have done (so you can do it better) at sites like h

Re: Re[2]: Dynamically creating submit buttons

2002-06-05 Thread David T-G
Jason -- I don't have answers for your other questions, but ... ...and then Jason Ostrom said... % ... % % I always start off my code by using CGI.pm object-oriented method: % print $q->header( "text/html" ), % $q->start_html( -title => "eDPS1 DS0 Monitor", -bgcolor => "#ff" ), ...

Perl/CGI Website Ideas

2002-06-05 Thread John Pitchko
Hello, I am somewhat of a newbie to Perl and CGI. I have written several scripts for use on a corporate website with great success. However, I am interested in designing an entire website with Perl CGI, but I do not really know where to begin or any inspiration for it. Does anyone know where

Re: First and second rate programmers

2002-06-05 Thread charles
If your as lazy as I am and hate to type you wouldn't have this debate...I can't remember ever writing a script that I started from scratch for years now. I almost always start with an existing script cause 9 times out of 10 it has something in it I'll need anyway...and I am the cut 'n'

RE: Capturing signal to cgi form

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Rob Roudebush [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 3:29 PM > To: cgi cgi-list > Subject: Capturing signal to cgi form > > > > Does anyone know how to capture the carriage return to > prevent a user from accidentally submitting the f

Re[2]: Dynamically creating submit buttons

2002-06-05 Thread Jason Ostrom
Bob, Your comments did help. My response below: Bob Showalter> This is a "drill down" concept, right? Why not just use a simple link? Bob Showalter> Details I don't think this is just a "drill down" concept. I need some way of passing the variables between the pages so that a dynamically buil

Capturing signal to cgi form

2002-06-05 Thread Rob Roudebush
Does anyone know how to capture the carriage return to prevent a user from accidentally submitting the form by pressing 'return' before they actually finish completing the form? -Rob - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup

Re: DBI newbabe

2002-06-05 Thread Dave K
There are many possible sources of error. Please include the actual error you received, and you will get the help you need. I have posted a few DBI/CGI scripts here http://www.geocities.com/k2001evad/pindex.html They are abit crude, but if you have MySql up and running on you machine and the CGI,

creating a session

2002-06-05 Thread Hytham Shehab
hi guys, i got the cgi::session module, but it is a front end to Apache::Session which is not available for win32, how come the cgi::session is available but the apache::session is not??!!, so weared, but this is not the problem, the problem is how to create session in win32 without that

RE: Perl/CGI mysql book

2002-06-05 Thread Scot Robnett
Programming the Perl DBI http://www.oreilly.com/catalog/perldbi/ SAMS Teach Yourself SQL in 10 Minutes (It's a lie but it's still a helpful book) http://www.amazon.com/exec/obidos/ASIN/0672321289/qid=1023301413/sr=1-1/ref= sr_1_1/002-4842183-8613640 -Original Message- From: Maureen

Re: Perl/CGI mysql book

2002-06-05 Thread Kevin Meltzer
Um.. what did the book not cover about this? We used DBI to connect to MySQL in about every chapter. What did the simple example on page 57 not provide for connecting to a DB? Cheers, Kevin On Wed, Jun 05, 2002 at 11:12:13AM -0700, Maureen E Fischer ([EMAIL PROTECTED]) said something similar to

Re: Perl/CGI mysql book

2002-06-05 Thread Brent Michalski
Hi, What kind of trouble are you having with your first connect? Are you having a MySQL issue or is it with the Perl DBI? I am one of the authors of "Writing CGI Applications with Perl" and I would love to help you out and also see what other details may need to be added to any future versions

Re: Perl/CGI mysql book

2002-06-05 Thread Kristofer Hoch
Try O'Reilly's MySql & mSQL. Also use the Online reference at www.mysql.org (documentation, MySQL APIs) Kristofer Original Message Follows From: "Maureen E Fischer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Perl/CGI mysql book Date: Wed, 5 Jun 2002 11:12:13 -0700 I am wri

Re: AW: AW: parsing xml files for variables

2002-06-05 Thread Kristofer Hoch
Johannes, That is the output that the program is supposed to output. I am terribly sorry that my comments are not clear (Good thing I am not a teacher). It may be easier to understand if you analyze what calls produce the variable values that are displayed. Example: the value 'Test Syste

Perl/CGI mysql book

2002-06-05 Thread Maureen E Fischer
I am writing my first CGI application and after analysis of the data structure that is required I determined that a DBM file would not be sufficient. Mysql was suggested to me. Unfortunately I could not find A book that seemed based on Perl and sql. Everything I found connected Mysql to PHP -

Re: First and second rate programmers

2002-06-05 Thread drieux
On Wednesday, June 5, 2002, at 08:40 , Ovid wrote: [..] > > First-rate mathematicians want to hang around first-rate > mathematicians. Second-rate mathematicians want to hang > around third-rate mathematicians. > > The reason for that is left as an exercise for the reader :) > > Chee

Re: First and second rate programmers

2002-06-05 Thread Ovid
--- Jake <[EMAIL PROTECTED]> wrote: > Im a bit worried that a few of my statements have been misconstrued, and I was > concerned that would happen when I first posted. Jake, No worries, I didn't misconstrue your comments. I deliberately changed the subject in hopes that no one would think I w

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Joel Hughes
because Perl has evolved over time? joel -Original Message- From: Jake [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 13:56 To: [EMAIL PROTECTED] Subject: Why do we even HAVE to... (was: Why using use strict;) So, in post after post after post I see the comment "always use strict"... I

DBI newbabe

2002-06-05 Thread sujitra kungi
hi i want to connect mysql with perl , first i try --- #!c:\perl\bin\perl.exe print "Content-type: text/html\n\n"; use Msql; so i change to #!c:\perl\bin\perl.exe print "Content-type: text/h

RE: First and second rate programmers

2002-06-05 Thread Nikola Janceski
The problem lies within the one liner code. But also some just don't understand it, and don't use perl often enough to care about it. This issue was brought up in the Apocalypse for Perl 6: http://dev.perl.org/perl6/apocalypse/1 (scroll to RFC 16) RFC 16: Keep default Perl free of constraints su

How to blank out a form?

2002-06-05 Thread Walt Sanders
This one is a little hard to explain. I have a .cgi program that offers a textarea form box. The contents are used to generate a text file that is then used as an SSI in an html program. This text must be changed from time to time. In order to make it easier to modify the text, I grab the p

Re: First and second rate programmers

2002-06-05 Thread Jake
Im a bit worried that a few of my statements have been misconstrued, and I was concerned that would happen when I first posted. Let me try to clarify - and I should also preface this with I am primarily a C/C++ programmer (I'm addicted to the Qt toolkit) who really uses perl only when he needs

Re: AW: parsing xml files for variables

2002-06-05 Thread drieux
On Wednesday, June 5, 2002, at 08:31 , Theuerkorn Johannes wrote: > Ok, found one easy solution: as I need to parse the whole file anyway, i > am removing all newline by doing: > > if (open(LOG,"$fileName")) { > >open (temp1,"$temp"); >while () >{ > chomp; >

First and second rate programmers

2002-06-05 Thread Ovid
To all: Okay, there have been a few comments about the merits of using strict, but I thought I would toss up a meta-argument. It's true that posters who post code without "strict" are generally reminded by several replies that they should have used strict, but the respondents also usually try

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Nikola Janceski
I was referring to those just touching the water, not the ones already waist deep. yes after you have your feet wet you should be using "use strict" at all times, and don't forget "use warnings" to help with those foolish mistakes we all make. If only I knew that back in Perl 4, when I was gettin

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Jake [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 8:56 AM > To: [EMAIL PROTECTED] > Subject: Why do we even HAVE to... (was: Why using use strict;) > > > So, in post after post after post I see the comment "always > use strict"... It's a good

Re: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Jake
IMHO only the first of these may be a valid reason. But I dont know much about "perl one liners". Your second reason is particularly bad, beginners are the ones who need "use strict" the most! On Wednesday 05 June 2002 10:12 am, Nikola Janceski wrote: > because it would reek havoc on all the

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Nikola Janceski
because it would reek havoc on all the perl one liners. And deter many beginners that are touching perl for the first time. And would annoy those who have to write a quick 5 line script in 3 seconds that forget a my for $line. > -Original Message- > From: Jake [mailto:[EMAIL PROTECTED]] >

Re: The Cannons of True Faith

2002-06-05 Thread Mark Rowlands
On Tuesday 04 June 2002 6:02 pm, fliptop wrote: > drieux wrote: > > one of the problems I keep bumping my head into > > is that fundamentally perl is a Kult - and as such > > tends to not always be a well organized kult - since > > they are never clear as to which are the true cannons of the faith

Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Jake
So, in post after post after post I see the comment "always use strict"... I have seen threads where people are insulted because they dont... Every perl tutorial I've seen says you should always "use strict"... It apparently doesnt slow down code execution... If you dont "use strict", the perl

beginners-cgi@perl.org

2002-06-05 Thread Nikola Janceski
I'd suggest using prototypes if you are going to be passing more than 3 variable references, or 3 or more different types of varible references. This is for your own sanity. > -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 9:30 AM > To

Re: Why using use strict;

2002-06-05 Thread drieux
On Wednesday, June 5, 2002, at 05:51 , Bob Showalter wrote: >> -Original Message- >> From: Janek Schleicher [mailto:[EMAIL PROTECTED]] >> Sent: Wednesday, June 05, 2002 6:19 AM >> Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: >>> >>> I know why I should use "use strict;" bu

beginners-cgi@perl.org

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 2:06 PM > To: [EMAIL PROTECTED] > Subject: subroutine or &subroutine > > > Hi all, > > I've seen some subroutines are ran without the & sign in front of the > subroutine name, like: >

RE: Why using use strict;

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 2:03 AM > To: [EMAIL PROTECTED] > Subject: Why using use strict; > > > Hi all, > > I know why I should use "use strict;" but what happen if I use "use > strict;" then if the code is

RE: Why using use strict;

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Janek Schleicher [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 6:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Why using use strict; > > > Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: > > > Hi all, > > > > I know why I should use

RE: Dynamically creating submit buttons

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Jason Ostrom [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 10:06 PM > To: [EMAIL PROTECTED] > Subject: Dynamically creating submit buttons > > > To those in the know, I have a couple of questions about the best way > to create dynamic form element

AW: AW: parsing xml files for variables

2002-06-05 Thread Theuerkorn Johannes
Hmm, somehow your script seems not to work,... :-( I just get this Kind of Output after parsing the sample file below,... >First Test System: Test System 1 (MyTest: Main area to get crap >Second Test System: Test System 2 (misc: Other information to confuse code) >Third Test System: Test Syst

Re: Why using use strict;

2002-06-05 Thread Janek Schleicher
Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: > Hi all, > > I know why I should use "use strict;" but what happen if I use "use strict;" then >if the code is > OK, I delete this line? > use strict has (e.g.) the benefit for checking for undef values. They can come from the inpu

beginners-cgi@perl.org

2002-06-05 Thread Janek Schleicher
Kevin Christopher wrote at Wed, 05 Jun 2002 04:58:38 +0200: > Yes, you can call subroutines either way, with or without the "&". The only case >when the > subroutine must be prefixed with an ampersand is, I believe, when you're assigning a >reference > variable, eg: > > $reference_x = \&subrou

RE: Why using use strict;

2002-06-05 Thread Joel Hughes
why would you want to do that Octavian? "use strict" is a sanity safety net. What your saying is like "I know why I should use safety belt whilst driving my car but what if I took it off?" - of course you can do it but beware of the consequences. joel -Original Message- From: Octavian R

beginners-cgi@perl.org

2002-06-05 Thread kevin christopher
Yes, you can call subroutines either way, with or without the "&". The only case when the subroutine must be prefixed with an ampersand is, I believe, when you're assigning a reference variable, eg: $reference_x = \&subroutine_y; But that's another story. Kevin -- Original Message ---