RE: What database would your recommend?
MySQL sounds like your answer Teddy. Runs perfectly well on Linux and Windows. -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: 06 June 2002 03:59 To: [EMAIL PROTECTED] Subject: What database would your recommend? Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use a module depending on a condition (was: What am I doing wrong?)
Octavian Rasnita wrote at Fri, 07 Jun 2002 05:00:33 +0200: ... The important code with problem is: if ($^O =~ /MSWin/i) { print The OS is: $^O; #This line is not printed because the OS is Linux but the following line has problems use Net::SMTP; ... How can I avoid Linux complaining that there is no Net::SMTP module installed even though I've tested not to be necessary? The problem is that a use Net::SMTP; statetement is evaluated at compile time. That means even if you write something like if (0) { use foo; } The compiler will try to load foo; You can avoid it with using require: if ($^O =~ /MSWin/i) { ... require 'Net::SMTP'; Net::SMTP::import(); } Require is evaluated at run time. Note that the import call is necassary. Best Wishes, Janek PS: BTW, it's better when the subject gives a short description of the problem. Of course, you're asking What am I doing wrong ? because you posted in beginners.cgi. :-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it a bug in Perl?
Octavian Rasnita wrote at Wed, 05 Jun 2002 14:18:42 +0200: ... Then I've seen one more error in that file: Argument \n isn't numeric in numeric eq (==) at c:/Perl/lib/perl5db.pl line 572 That line is: for ($i = $line + 1; $i = $max $dbline[$i] == 0; ++$i) { #{ vi Is there any bug, or what could be the problem? I am using Windows 2000. If I run the script normally, the script runs without errors or warnings. Did you run the script with use strict; use warnings; ? (what should be normally) I believe (allthough I'm not sure), that debugging switches warnings on. When $dbline[$i] contains a \n then the warning is definitly good. Perl warns you, because cat == dog what most users didn't mean. Cheerio, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What database would your recommend?
MySQL is a relational database. Taken from the mysql documentation page at http://www.mysql.org/documentation/mysql/bychapter/manual_Introduction.html#Features MySQL is a relational database management system. A relational database stores data in separate tables rather than putting all the data in one big storeroom. This adds speed and flexibility. The tables are linked by defined relations making it possible to combine data from several tables on request. The SQL part of ``MySQL'' stands for ``Structured Query Language''@-the most common standardised language used to access databases. Paul Arsenault, CCNA [EMAIL PROTECTED] From: David T-G [EMAIL PROTECTED] To: perl beginners cgi [EMAIL PROTECTED] CC: Octavian Rasnita [EMAIL PROTECTED] Subject: Re: What database would your recommend? Date: Fri, 7 Jun 2002 10:32:25 -0500 Teddy -- ...and then Octavian Rasnita said... % % Hi all, Hello! % % I want to start learning a database that works with Perl but I would like to % learn a database that works under Windows and Unix also. mysql is a lean, fast, excellent choice. I'm looking into the same sort of question, though, and have found that mysql is not relational (and also takes some other shortcuts), and so if you just want *a* database it's fine but if you want to learn on one so that you can grow into another PostgreSQL might be better; it's relational and much more like the big guys. It is, of course, available for Linux, and although I don't know about a native Win32 port I do know that it's now available under Cygwin. % % Is there such a thing? Of course :-) % Of course, I would like to learn something as simple as possible because I % am a beginner in Perl. If you *really* want to keep it simple, be sure to use DBI and do your calls through there so that you don't go falling off into specifics of each database. From what I've found, DBI code is extremely portable, while writing your own SQL gets messy. % % Thank you. HTH HAND % % Teddy, % [EMAIL PROTECTED] :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! attach3 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to blank out a form?
I think what happends is that even though you place the blank field there, the text is still really there, try using the print command on the same page and take a look to see if it actually does erase the data or does it just erase it in the form text area, I had the same problem, I just let people delete the old text Walt Sanders [EMAIL PROTECTED] 06/06/02 12:50AM 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 previous text and put it into the form for editing. Problem is: if one wants to blank out the text entirely by deleting everything and submitting it, to have nothing placed in the text tile, the entire previous message reappears. The blank form doesn't take. Work around has been to place at least one blank space in the form. Then everything works fine; I get a blank text field file. Rather than having to explain to all other users to do this, it would be much better if one could just delete the text (blank out the form) and submit, rather than having to remember to put a space in. I don't know how to make this happen. Here is the snippet: my $textold; open(EVENT, event2.txt) or die(Cannot open: $!); $textold=EVENT; close(EVENT) or die(Cannot close event2.txt: $!); print FORMSTART; form method = post action = eventput2.cgi pstrongEvent Title: /strong input name = title type = text size = 40/p strongEnter Event Description amp; Details Here:/strongbr textarea name = comment rows = 20 cols = 72$textold/textarea/p . $textold is forwarded even when the blank is submitted empty. How to fix? Thanks, Walt Sanders. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What database would your recommend?
depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: subroutine or subroutine
Janek: Thank you for explaining the difference between calling subroutines with vs. without the ampersand. I'm glad I'm on the beginners list. Sincerely, Kevin Christopher -- Original Message -- From: Camilo Gonzalez [EMAIL PROTECTED] Date: Thu, 6 Jun 2002 08:23:33 -0500 Janek, Wouldn't it print: foo: foo:A B C Also, I believe that you must declare the subroutine before you are allowed to reference it without the . Am I right about that? -Original Message- From: Janek Schleicher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 5:10 AM To: [EMAIL PROTECTED] Subject: Re: subroutine or subroutine 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 = \subroutine_y; But that's another story. Oh, I'm afraid that's not the truth :-) subroutine without any arguments calls the subroutine with the implicit @_ array, while subroutine only calls subroutine() without any argument. Look at this snippet: @_ = qw(A B C); print 'foo:'; foo; print \n; print 'foo:'; foo; print \n; sub foo { print @_; } It prints: foo: foo:ABC Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
99% of my databases have been small, so flatfile databases are fine, the Perl can handle it as well as the servers. When you get into hundreds of thousands of records, that's different-- then you need something stable, fast, and flexible. Camilo Gonzalez [EMAIL PROTECTED] 06/07/02 11:56AM That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse/ apocalypse 1-4 http://www.perl.com/pub/a/2002/06/04/apo5.html apocalypse 5 (pattern matching will never be the same) I get a w**dy just thinking about it. -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:57 AM To: 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What database would your recommend?
Hi all, Having spoken to consultants/teachers that I know, their experience matches my own. When teaching, they prefer PHP. When programming they prefer Perl. It's basically horses for courses. I use PHP for what it's always been designed for which is creating dynamic web content. For application development (batch, console, complex CGI etc) I use Perl. The big advantage here is that wil PostgreSQL being the back end I can easily combine both languages in a project as appropriate. Gary On Friday 07 June 2002 4:56 pm, Camilo Gonzalez wrote: That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
Forgive me Nikola. In this business you need to stay as marketable as possible. I don't want to go to a potential employer with six years of Perl on my resume, to be beaten out by somebody with 2 years of PHP on theirs. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:06 AM To: 'Camilo Gonzalez'; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse/ apocalypse 1-4 http://www.perl.com/pub/a/2002/06/04/apo5.html apocalypse 5 (pattern matching will never be the same) I get a w**dy just thinking about it. -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:57 AM To: 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
well.. I have 6 years Perl.. but I don't do web design, and no PHP programmer has been me out of a position yet. I am not shooting down PHP, but Perl has many many advantages over PHP, but PHP is better for DB access via a web front. But Perl is better at backend access and overall reporting (not DB reports alone). It's just not a dead or dying language. I think with Perl 6 it will have much renewed vigour. Remember all languages have there advantages and disadavantages. [rant] C/C++: number crunch/OS masters Perl: parsing masters PHP: DB/CGI masters VB: GUI masters [/rant] -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 12:13 PM To: 'Nikola Janceski'; Camilo Gonzalez; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Forgive me Nikola. In this business you need to stay as marketable as possible. I don't want to go to a potential employer with six years of Perl on my resume, to be beaten out by somebody with 2 years of PHP on theirs. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:06 AM To: 'Camilo Gonzalez'; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse/ apocalypse 1-4 http://www.perl.com/pub/a/2002/06/04/apo5.html apocalypse 5 (pattern matching will never be the same) I get a w**dy just thinking about it. -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:57 AM To: 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
Camilo -- If you've done any research at all you would know that learning perl will not make you less marketable. And if I were you, I would not Marry myself to one scripting language;) Mike -Original Message- From: Camilo Gonzalez Sent: Fri 6/7/2002 12:12 PM To: 'Nikola Janceski'; Camilo Gonzalez; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Forgive me Nikola. In this business you need to stay as marketable as possible. I don't want to go to a potential employer with six years of Perl on my resume, to be beaten out by somebody with 2 years of PHP on theirs. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:06 AM To: 'Camilo Gonzalez'; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse/ apocalypse 1-4 http://www.perl.com/pub/a/2002/06/04/apo5.html apocalypse 5 (pattern matching will never be the same) I get a w**dy just thinking about it. -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:57 AM To: 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
dont put your eggs in one basket, as they say... Mike Rapuano [EMAIL PROTECTED] 06/07/02 12:24PM Camilo -- If you've done any research at all you would know that learning perl will not make you less marketable. And if I were you, I would not Marry myself to one scripting language;) Mike -Original Message- From: Camilo Gonzalez Sent: Fri 6/7/2002 12:12 PM To: 'Nikola Janceski'; Camilo Gonzalez; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Forgive me Nikola. In this business you need to stay as marketable as possible. I don't want to go to a potential employer with six years of Perl on my resume, to be beaten out by somebody with 2 years of PHP on theirs. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:06 AM To: 'Camilo Gonzalez'; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse/ apocalypse 1-4 http://www.perl.com/pub/a/2002/06/04/apo5.html apocalypse 5 (pattern matching will never be the same) I get a w**dy just thinking about it. -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:57 AM To: 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database would your recommend? depends what you need to do, PHP has become VERY popular Octavian Rasnita [EMAIL PROTECTED] 06/05/02 10:58PM Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What database would your recommend?
I would go for Postgres, if I were you. Relational, transactions, and foreign key assignments. May be a little slower than MySQL, but pretty much the same in stability. -James -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:59 PM To: [EMAIL PROTECTED] Subject: What database would your recommend? Hi all, I want to start learning a database that works with Perl but I would like to learn a database that works under Windows and Unix also. Is there such a thing? Of course, I would like to learn something as simple as possible because I am a beginner in Perl. Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: What database would your recommend?
Not to be pedantic, but isn't PHP a *language*, not a database? So you could use almost any particular database with either PHP or Perl. Or does PHP have it's own built-in database and that's what you meant? (I looked at PHP a little once, and I have to admit a knee-jerk negative reaction to a language that relies on indentation for intuiting program flow. [Please avoid copying this list on any religious responses to that last sentence; take it up with me personally if you must.]) Of course, if we're being pedantic, I would point out that this whole thread has been off-topic from the start, but just I'll content myself with prefixing the subject with [OT]. - John --- Fred Sahakian [EMAIL PROTECTED] wrote: depends what you need to do, PHP has become VERY popular = Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still alive, and there's nothing I want to do. - They Might Be Giants, http://www.tmbg.com __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: What database would your recommend?
John, et al -- ...and then John Brooking said... % % Not to be pedantic, but isn't PHP a *language*, not a % database? So you could use almost any particular Yes, it is; it doesn't have its own database built in. For someone starting out doing web stuff it wouldn't be bad to pick up, even if it isn't a four-letter word. HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05258/pgp0.pgp Description: PGP signature
Re: What database would your recommend?
Paul -- Thanks for the reply. ...and then Paul Arsenault said... % % MySQL is a relational database. % % Taken from the mysql documentation page at % http://www.mysql.org/documentation/mysql/bychapter/manual_Introduction.html#Features % % MySQL is a relational database management system. Hmmm... That is a pretty compelling point :-) % A relational database stores data in separate tables rather than putting % all the data in one big storeroom. This adds speed and flexibility. The % tables are linked by defined relations making it possible to combine data % from several tables on request. The SQL part of ``MySQL'' stands for % ``Structured Query Language''@-the most common standardised language used % to access databases. OK, I get that. I still have to figure out what relations really are (example help but I don't deal with employees and salaries so *my* examples would probably be more helpful :-) but I got this from a couple of DB buddies, one of whom had been a long-time mysql lover but had turned to pgres because he ran into problems under mysql (the other guy, a die-hard Oracle man, will use nothing else anyway). Now I have to go back and pin him down on what he meant since his statement so obviously contradicts the docs. % % % Paul Arsenault, CCNA % [EMAIL PROTECTED] Thanks HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05259/pgp0.pgp Description: PGP signature
webBotting a Job Hunt
volks, this is probably more an ethical question than a technical question - since over the plays here I have become better at reverse engineering what webServers want pushed at them in the way of URI by get or puts but is it kosher to reverse engineer how various public web sites do this jazz - so that i merely wind up with a cron job that will summarize the evening search for jobs that are out there??? Hence in the morning review a single piece of email daily rather than click my way through all of them??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webBotting a Job Hunt
Depends... there are those that don't know Perl, so I see nothing wrong with it unless you are using this for profitable purposes. Remember, if it's free, how is it wrong? If you think it's wrong that it is free, then help them make it less free. Linus idea, followed by Gates idea. I think this is a question which you can only answer for yourself. I am planning to make a web browser to end all browsers, but that's not for a few years. The idea is the browser will be configurable to block ads (in the page) and popups, with just a few user clicks. So my ethical problem is, is it right for me to make this? You can't stop the end user form changing the viewing style. Some browsers that do that do it without the users intervention. [getting off topic here] It's up to you to decide what is right and what is wrong. -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 1:52 PM To: cgi cgi-list Subject: webBotting a Job Hunt volks, this is probably more an ethical question than a technical question - since over the plays here I have become better at reverse engineering what webServers want pushed at them in the way of URI by get or puts but is it kosher to reverse engineer how various public web sites do this jazz - so that i merely wind up with a cron job that will summarize the evening search for jobs that are out there??? Hence in the morning review a single piece of email daily rather than click my way through all of them??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webBotting a Job Hunt
drieux, et al -- ...and then drieux said... % % volks, Hi! % % this is probably more an ethical question % than a technical question - since over the % plays here I have become better at reverse engineering % what webServers want pushed at them in the way of URI % by get or puts *grin* % % but is it kosher to reverse engineer how various public % web sites do this jazz - so that i merely wind up with % a cron job that will summarize the evening search for % jobs that are out there??? Hence in the morning review % a single piece of email daily rather than click my % way through all of them??? 1) yes I say that because, from your description, you're not going after restricted content (maybe you'll get an account there to answer a login challenge, a la techrepublic, but then you'll have done your part, too) and not trying to break in, but merely optimizing your connection so that you don't see the ads or read the non-matching fluff. I already do half of that by using lynx instead of netscape (heaven forbid ie :-) so that I don't bother with images and am not subject to JS code and so on. In the past I've said that it's pretty easy to have the site's search agent go through the postings for you and then read the email that comes in, particularly compared to writing a script that will go and get the info for you, but it might not be easier for some :-) That's even closer to your stated goal; the mail I get from dice doesn't have any ads in it (er, well, I don't think so; if it does, I now skip over them by searching for the beginning-of-job marker and don't notice anyway :-) and yet they're happy to send it to me. Hacking your way around a .htaccess file, as an example, would probably be another story, but I don't think that's within this scope. 2) i want a copy :-) % % % ciao % drieux HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05262/pgp0.pgp Description: PGP signature
Re: What database would your recommend?
Paul, et al -- ...and then Paul Arsenault said... % % MySQL is a relational database. I've followed up and have more information -- sort of. My pal couldn't provide hard data but pointed not only to extra stuff like transactions (I don't think anyone is saying that transactions are part of what makes up relational) but stored procedures, foreign keys, and better joins. Perhaps the difference in relational and whopping big powerful relational. Good news for me, though, because mysql is available out of the box at my server and I can still learn not just DB but RDB interfacing. Thanks a lot for the pointer! HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05263/pgp0.pgp Description: PGP signature
Re: webBotting a Job Hunt
Is any of this relevent to this list? I don't think so. Again, please stay on topic. Cheers, Kevin On Fri, Jun 07, 2002 at 10:51:57AM -0700, drieux ([EMAIL PROTECTED]) said something similar to: volks, this is probably more an ethical question than a technical question - since over the plays here I have become better at reverse engineering what webServers want pushed at them in the way of URI by get or puts but is it kosher to reverse engineer how various public web sites do this jazz - so that i merely wind up with a cron job that will summarize the evening search for jobs that are out there??? Hence in the morning review a single piece of email daily rather than click my way through all of them??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Down that path lies madness. On the other hand, the road to hell is paved with melting snowballs. --Larry Wall in [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What database would your recommend?
Relational databasing just means that there are keys associated between the different databases that allows the database software to easily make matches from one database table to another very quickly and efficiently. I don't know if you've ever heard the term primary key before, but it simply refers to a unique identifier that is common to the database tables and uniquely identifies one and only one object in each of the databases. I believe that's what makes up a relational database. As for transactions, only very high-end commercial databases (such as your friend's Oracle) support transactions. They are only required in applications such as real-time transactions. For example...Etrade.com would use Oracle probably to control all trading, and amazon.com would use Oracle to control all inventory and purchases. I hope this answers some of your questions. Paul Arsenault, CCNA [EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webBotting a Job Hunt
On Friday, June 7, 2002, at 11:38 , Kevin Meltzer wrote: Is any of this relevent to this list? I don't think so. Again, please stay on topic. my apologies, I thought the ethics of using a given technology might be a relevant topic. Since in essence I am simply reusing the 'test harness' code that I use for 'debugging' my CGI code for a purpose I had not originally intended to use it - and the ethical concern came to mind... Since I wanted to hand this off to folks who were fromerly employee's of Enron, et al, I thought I would ask those who probably a part of the code mongers on the other side if such is a kosher thing to do On Fri, Jun 07, 2002 at 10:51:57AM -0700, drieux ([EMAIL PROTECTED]) said something similar to: volks, this is probably more an ethical question than a technical question - since over the plays here I have become better at reverse engineering what webServers want pushed at them in the way of URI by get or puts but is it kosher to reverse engineer how various public web sites do this jazz - so that i merely wind up with a cron job that will summarize the evening search for jobs that are out there??? Hence in the morning review a single piece of email daily rather than click my way through all of them??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What database would your recommend?
Paul Arsenault wrote: database. As for transactions, only very high-end commercial databases (such as your friend's Oracle) support transactions. They are only that's not true - postgresql supports transactions. and according to this page: http://www.mysql.com/doc/I/n/InnoDB_transaction_model.html mysql now supports them also. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI::Graph --- description
Konrad -- ...and then Konrad Foerstner said... % % Hi! Hello! % % I would like to write some scipts to produce plots and % saw CGI::Graph is a good solution for that. The problem is % that I can't find a good introduction or description of % it in the web. Has anyone a good link for me? Did you try search.cpan.org to look for it?? I did and landed at http://search.cpan.org/doc/MCHANG/CGIGraph-0.93/lib/CGI/Graph.pm and that seems pretty complete to me... % % Thanks HTH HAND % % Konrad :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05268/pgp0.pgp Description: PGP signature
Re: CGI::Graph --- description
Yes, I had checked this befor, but I need more exmaples and introduction. On Fri, 7 Jun 2002 13:41:09 -0500 David T-G [EMAIL PROTECTED] wrote: Konrad -- ...and then Konrad Foerstner said... % % Hi! Hello! % % I would like to write some scipts to produce plots and % saw CGI::Graph is a good solution for that. The problem is % that I can't find a good introduction or description of % it in the web. Has anyone a good link for me? Did you try search.cpan.org to look for it?? I did and landed at http://search.cpan.org/doc/MCHANG/CGIGraph-0.93/lib/CGI/Graph.pm and that seems pretty complete to me... % % Thanks HTH HAND % % Konrad :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to send an email without Net::SMTP
Use Mail::Sendmail Eric On Wed, 5 Jun 2002, Octavian Rasnita wrote: Hi all, Is it complicated to send email with an SMTP mail server if the Net::SMTP module is not installed? Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refresh dynamic content using query_string
I was wondering if there was any way to refresh and have the same dynamically-created page viewed every 5 seconds? I'm trying to do it like this: my $URL2 = ds0.cgi?$ENV{QUERY_STRING}; ### HTML part print $q-header( -Refresh='5; URL=$URL2' ), But this doesn't work. The URL that is recreated is literally interpreted as: /cgi-bin/ds0.cgi?$URL2 And thus can't be found (script not found or unable to stat). If the user was at: /cgi-bin/ds0.cgi?rgrp=NOVA+MEX I need for the bit of code above to re-create that string so they are refreshed to it after 5 seconds. What am I missing here? Any help much appreciated. -Jason -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh dynamic content using query_string
Jason -- ...and then Jason Ostrom said... % % I was wondering if there was any way to refresh and have the same % dynamically-created page viewed every 5 seconds? % % I'm trying to do it like this: % % my $URL2 = ds0.cgi?$ENV{QUERY_STRING}; % ### HTML part % print $q-header( -Refresh='5; URL=$URL2' ), Have you tried printing your header with instead of ''? I believe '' inhibits interpolation. HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05272/pgp0.pgp Description: PGP signature
Re[2]: Refresh dynamic content using query_string
David, You are the man. That worked. Just when I was figuring out that this was a variable interpolation problem. I could use $URL4 instead of $URL2, and it still wasn't interepreted as a variable, and $URL4 wouldn't be declared anywhere in the program. Thanks man! -Jason David T-G Jason -- David T-G ...and then Jason Ostrom said... David T-G % David T-G % I was wondering if there was any way to refresh and have the same David T-G % dynamically-created page viewed every 5 seconds? David T-G % David T-G % I'm trying to do it like this: David T-G % David T-G % my $URL2 = ds0.cgi?$ENV{QUERY_STRING}; David T-G % ### HTML part % print $q-header( -Refresh='5; URL=$URL2' ), David T-G Have you tried printing your header with instead of ''? I believe '' David T-G inhibits interpolation. David T-G HTH HAND David T-G :-D -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webBotting a Job Hunt
--- drieux [EMAIL PROTECTED] wrote: volks, this is probably more an ethical question than a technical question - since over the plays here I have become better at reverse engineering what webServers want pushed at them in the way of URI by get or puts but is it kosher to reverse engineer how various public web sites do this jazz - so that i merely wind up with a cron job that will summarize the evening search for jobs that are out there??? Hence in the morning review a single piece of email daily rather than click my way through all of them??? I think this is a great idea. Just be sure to be a good netizen and follow the Terms of Service that each site provides. Many sites (though I am not sure about the job sites) request that you do not use automated tools to access them (tools such as LWP, mirroring programs, etc). Cheers, Curtis Ovid Poe = Ovid on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Am I doing something wrong?
Hi all, I use: =start; =cut I use this statement to comment out more lines. However, I have seen in Lama Book that there is no block comment in Perl. I thought this statement is used to comment more lines. What is this statement used for, and is it something wrong if I use it just for commenting? Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using strict and a configuration file?
Hi all, Is it possible to use use strict; if I get the variables from a configuration file? I've tried: use strict; require f:/xxx/config.txt; #In the configuration file I have a line like my $test = test test test; print Content-type: text/html\n\n; print $test; This gives me an error that I should define the variable $test. I don't want to define it in the script but in the configuration file. However, if I define it in the script with my $test; the script prints an empty string and doesn't take the variable from the configuration file. Is it possible to use strict, or it is necessary to use no strict;? Another problem, maybe bigger is that even though the script is running fine, it give me errors in the log file telling me that the variable $xxx and $yyy, ... is used only once. Is there a good method to define variables for more scripts in a single configuration file? I don't want to store my email address and other settings in each script because I may change that address, and then I will need to modify a lot. Thank you. or I have another solution for defining all the variables in a configuration file? Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorting a hash by values?
Hi all, I want to make a script that sorts the values from a hash. I want to make a top with the most downloaded files. I know how to sort the hash by keys but I couldn't sort it by values. I have a hash like: %hash = ( file1 = 3, file2 = 11, file3 = 6, fileN = 22 ); I would like to print the name and the number of the downloads in descending order like: filename number x: 33 file number y: 6 ... file number z: 2 Is there a function that sorts by values? I've tried (but with no results: foreach $cnt(sort values(%hash)) { print $hash{$cnt}: $cntbr; } Thank you for any tips. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Am I doing something wrong?
What you are doing is not commenting; you're creating POD documentation. To comment out lines in Perl, use the # character. #!/usr/bin/perl -w print Hello, world! \n; # This is a comment where you # can write about what you're # doing in a particular block # so other programmers won't # be confused by your code. -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 4:40 AM To: [EMAIL PROTECTED] Subject: Am I doing something wrong? Hi all, I use: =start; . =cut I use this statement to comment out more lines. However, I have seen in Lama Book that there is no block comment in Perl. I thought this statement is used to comment more lines. What is this statement used for, and is it something wrong if I use it just for commenting? Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.368 / Virus Database: 204 - Release Date: 5/29/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.368 / Virus Database: 204 - Release Date: 5/29/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]