RE: cgi probs

2002-06-27 Thread Scot Robnett
I hate to ask the obvious, but is your web server running on that box? Scot R. -Original Message- From: Ian Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:19 PM To: [EMAIL PROTECTED] Subject: cgi probs Hi I have set up my machine running suse linu

Re: Perl/CGI and Databases (where to begin?)

2002-06-27 Thread fliptop
On Thu, 27 Jun 2002, Roger Spears opined: RS:I'm working on a project that uses Perl/CGI to work with Databases. I RS:have done this before with basic txt files and then I use 1000 lines of RS:code to make them appear relational. What would be an easier way to RS:achieve this? SQL? yes, sql i

Perl/CGI and Databases (where to begin?)

2002-06-27 Thread Roger Spears
I'm working on a project that uses Perl/CGI to work with Databases. I have done this before with basic txt files and then I use 1000 lines of code to make them appear relational. What would be an easier way to achieve this? SQL? Can you use Perl/CGI to interact with a Microsoft Access Database

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread fliptop
On Thu, 27 Jun 2002, [EMAIL PROTECTED] opined: :With mine, there is nothing beyond what I described. The hash structure I gave you :below, that's :it. Form.pm takes the input, makes a hash with it, and if you understand how to use :a hash and :array ref, your set. Its just a hash, no objects

cgi probs

2002-06-27 Thread Ian Rogers
Hi I have set up my machine running suse linux, and i am now trying to get cgi working. I have written a html for to post the data and a basic cgi script to read in and print out the results. I have written cgi code on other machines so the code is correct, but i am having trouble on my mach

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread perl-dvd
No offence taken, I have heard the word hubris before, but I wasn't certain of the meaning, so naturally I looked it up (now that you mention it, I have heard that quote out of the Camel book before). At first I thought it was a compliment the way you said it and all, but after seeing dictiona

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
Oh, dear, I was afraid that that message might be misinterpreted! I thought my humor was evident enough by the informal language, but I guess I should have put a smiley on it too. I didn't mean hubris in a bad sense. The sense I get from Larry's use of it (from reading the Camel book), and the se

Re: invalid

2002-06-27 Thread Kyle Babich
What I'm trying to do is print the contents of helpdesk/support.cgi when c2=hd Here is that portion of the script and as of right now it is displaying a blank page when I try to run it: my $c1 = param('c1'); my $content1 = "c1"; if ($c1 eq "h") { $content1 = qq{ \n}; } elsif ($c1 eq "eh") {

RE: invalid

2002-06-27 Thread Hanson, Robert
It depends on what "include" is. If it is a subroutine... $content2 = include("helpdesk/support.cgi"); If it is a hash... $content2 = $include{"helpdesk/support.cgi"}; And what was the error? Rob -Original Message- From: Kyle Babich [mailto:[EMAIL PROTECTED]] Sent: Thursday, J

RE: invalid

2002-06-27 Thread Bob Showalter
> -Original Message- > From: Kyle Babich [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 3:49 PM > To: [EMAIL PROTECTED] > Subject: invalid > > > Why is this invalid and how do I make this valid while using > strict subs? > > } elsif ($c2 eq "hd") { > $content2 = inclu

invalid

2002-06-27 Thread Kyle Babich
Why is this invalid and how do I make this valid while using strict subs? } elsif ($c2 eq "hd") { $content2 = include{helpdesk/support.cgi}; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
True. Whew, my hand hurts from all that extra typing. ;) Scot R. -Original Message- From: John Brooking [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:50 PM To: Scot Robnett; [EMAIL PROTECTED] Cc: Felix Geerinckx Subject: RE: CGI.pm v/s roll-your-own [WAS:] Displaying Probl

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread perl-dvd
That actually has nothing to do with it. It has everything to do with the strong desire to improve circumstances, be innovative, make the world a better place. If you want to call me arrogant for trying to improve my surroundings, go right ahead, but your tacking the wrong name on me. David

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
After all, Hubris is one of St. Larry's Three Cardinal Virtues! So this seems to me to be a properly Perl-ish attitude. - John --- [EMAIL PROTECTED] wrote: > ... > minded here, I'm just the type of person who if I'm > not perfectly happy with the way something works > (whether programming or in

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
See?! Your version just expanded by 50% !! ;-) --- Scot Robnett <[EMAIL PROTECTED]> wrote: > Picky, picky. :) > You're right, my bad. > > use CGI; > my $q = new CGI; > my %params = $q->Vars; = "Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still alive, and the

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread perl-dvd
by the way, :) is a smiley, it means I'm joking with you. (reference the last email) With mine, there is nothing beyond what I described. The hash structure I gave you below, that's it. Form.pm takes the input, makes a hash with it, and if you understand how to use a hash and array ref, your

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
I haven't seen the rest of your module, so I'm not so sure that the point really stands. It might. But, adding one line to initialize the CGI object is really not that big a deal considering the kind of power you have associated with that object. How much extra work do I have to do to utilize the

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread perl-dvd
my point stands :) So out of curiosity, what kind of data structure do you get back with this? If its as I would imagine, then its very close to my own. %hash = ( 'a_name' => 'value', # for single name value pairs 'b_name' => ["multiple", "values", "for", "this"], # for single name

Re: Displaying Problems

2002-06-27 Thread perl-dvd
You make a very good point fliptop, I did forget the nature of this mailing list. As far as CGI.pm debating, I will step down in this mailing list. David - Original Message - From: "fliptop" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Bob Showalter" <[EMAIL PROTECTED]>; <[EMAIL

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread perl-dvd
The difference is, the efficiency and data structure CGI.pm returns. Mine came to I think 72 times faster when not uploading images, and 2.5 times faster when uploading images. I'm not saying CGI.pm is written poorly or anything, I am saying that it is a little bit bloated and has a lot o

Re: uninitialized value?

2002-06-27 Thread drieux
On Thursday, June 27, 2002, at 12:07 , Felix Geerinckx wrote: > on Wed, 26 Jun 2002 22:56:23 GMT, [EMAIL PROTECTED] (Drieux) wrote: > >> We keep tossing around these 'map' tricks - >> and I was wondering why we do not put them up in >> the >> >> BEGIN { >> %in = map { $_ => 1} qw(

Re: text/plain versus text/html

2002-06-27 Thread drieux
On Wednesday, June 26, 2002, at 07:11 , Octavian Rasnita wrote: [..] I'm not sure I get what your real problem here is: > if I use: > > use LWP::Simple; > print head(http://localhost/index.shtml); > > This prints: > text/plain; charset=ISO-8859-1Apache/2.0.36 (Win32) > > I have problems because

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
Picky, picky. :) You're right, my bad. use CGI; my $q = new CGI; my %params = $q->Vars; SR -Original Message- From: Felix Geerinckx [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:16 AM To: [EMAIL PROTECTED] Subject: RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

Re: Extract numbers from in between parentheses with regex

2002-06-27 Thread Kristofer Hoch
Brain, Thanks for the direction! I really need to learn more about regex. I will certainly read those! Kristofer Original Message Follows From: Brian <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Extract numbers from in between parentheses with re