RE: Please, ASP or PERL?
it depends JP, what is your current skill base? what is your shops current technical strategy? Also, you would be wise to steer clear of any I hate microsoft type 'arguments' - these are not helpful in assessing technical strategies. joel -Original Message- From: joao silva [mailto:[EMAIL PROTECTED]] Sent: 20 June 2002 20:11 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Please, ASP or PERL? Why should I use PERL with CGI instead of ASP? Thanks, JP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- 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: PERL!! : )
JP: While I agree with Brent (hi, Brent), it doesn't have to be an all-or-nothing decision. I've had a lot of success running Perl *with* ASP. In fact, I'm finishing a project right now that - has to run on IIS - has to run under ASP So what is a self-respecting Perl programmer to do? Use PerlScript, ActiveState's extension that allows Perl to run as a full-fledged ASP scripting language. You get all the advantages of ASP, all the power of Perl, and none of the gut-wrenching inadequacy of VBScript or soullessness of JavaScript. I've built very large applications this way. It really works. It's also a great way to introduce Perl to an all-Microsoft shop, demonstrate Perl's power and maintainability, and start to loosen the Microsoft death-grip. --Bill Odom Heh, I probably came off a bit too harsh, Micro$oft really does it all to themselves... - Perl is MUCH more widely used than ASP. - Perl is more maintainable (good management buzzword). I would bet the farm that there are more *GOOD* Perl programmers than ASP programmers. I would bet the ASP has more programmers, but most of them could not program their way out of a wet paper bag. - Perl undoubtably has more modules available than ASP. www.cpan.org - Does your boss *really* want to run IIS? What do you want to patch today? Note: If your boss is strictly set on running IIS, RUN, don't walk to the nearest exit!When (and I said when) it gets hacked, who is going to take the fall??? Brent -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fetchall problem
on Thu, 20 Jun 2002 22:30:36 GMT, [EMAIL PROTECTED] (Maureen E Fischer) wrote: I am stuck on a bug in my perl cgi program that uses a mysql database. In executing the following code I am getting a message in the dump that the fetch failed --fetch () without execute () [...] $sql = SELECT clientcode FROM clientemployee WHERE clientemployee.empid=?; $sth = $dbh-prepare($sql); $sth-execute($validemp); my $sites = $sth-fetchall_arrayref; print DBI::dump_results($sth); print \n\n; The 'dump_results' method itself fetches the records from $sth. Since you already did this yourself (by calling the fetchall_arrayref method), you have to either re-execute your query, or remove the fetchall_arrayref call. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: Please, ASP or PERL?
Not only does it depend upon ur current skill set but also what u intend to do? Perl-CGI or C-CGI would be my choice for mail servers front end and interfacing but if u r just doing a normal database interface, ASP works fine and also gives u a little more options in design and aesthetics. If u r learning and need to learn quick go for ASP.I have not used it of late but can tell u it is comparitively a lot easier. If u plan long term and secure strategy, perl-cgi should win. U did not mention the task at hand and ur current requriements. If it is a curiosity question the I will ask, why should you go for Physics and not Chemistry? It depends on ur interest (skill) and what u intend to do? Anyone else has a better answer. On Fri, 21 Jun 2002 Joel Hughes wrote : it depends JP, what is your current skill base? what is your shops current technical strategy? Also, you would be wise to steer clear of any I hate microsoft type 'arguments' - these are not helpful in assessing technical strategies. joel -Original Message- From: joao silva [mailto:[EMAIL PROTECTED]] Sent: 20 June 2002 20:11 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Please, ASP or PERL? Why should I use PERL with CGI instead of ASP? Thanks, JP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- 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] _ There is always a better job for you at Monsterindia.com. Go now http://monsterindia.com/rediffin/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Chart::Plot-Probs
Hi folks, okay my prob is not really CGI specific, but I just try here. I started to use the Chart::Plot module (http://www.speakeasy.org/~cgires/modules/plot/plot.html) to make some plots. Without any modification I get nice plots, but when I use setGraphOptions() and getGDobject() the trouble begins: When I add an the graph title by $img-setGraphOptions ('title' = 'My Graph Title') or the title of the axes, a graphic with two times the same plots (one is a little bit displaced above the other) is produced. The problem with getGDobject() ist, that perl can't find it: Can't locate object method getGDObject via package Chart::Plot (perhaps you forgot to load Chart::Plot?). But the modul is loaded. Konrad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI.pm
On Thu, Jun 20, 2002 at 10:51:14AM -0500, David T-G wrote: David -- ...and then [EMAIL PROTECTED] said... % % Personally, I don't. My development team and I have created a few tools that we use which are % extremely quick and easy to use. I created a CGI input retrieval lib that works on both Linux and Sounds pretty slick, even if fairly customized. Got a pointer to it for us lookers? Your var and replacement stuff sounds quite interesting. The var and replacement stuff looks similar with CGI::FastTemplate CGI has its own use, but i personally prefer to use template. Neater and nicer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Chart::Plot-Probs
Konrad Foerstner wrote: okay my prob is not really CGI specific, but I just try here. yikes! since this list *is* cgi-specific, you should take your question elsewhere. http://learn.perl.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POSIX 'strftime' issue
David Gilden wrote: I have small problem here, check out the following: #!/usr/bin/perl use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use POSIX 'strftime'; # This works fine on Earthlink's servers using: print OUT strftime('%A, %B %1d, %Y %I:%M %p',localtime) ,\n; #returns: Wednesday, June 19, 2002 02:01 PM #but at CI-Host, I get this string: print OUT strftime('%A, %B %D, %Y %I:%M %p',localtime) ,\n; #returns: Wednesday, June d, 2002 12:53 PM How can I fix this to work at CI-Host, (I think they are runing Apache) have you tried reading the documentation for posix? from the docs: If you want your code to be portable, your format (fmt) argument should use only the conversion specifiers defined by the ANSI C standard. These are aAbBcdHIjmMpSUwWxXyYZ%. i don't see 'D' in that list. and besides, your earthlink fmt has '%1d', while your ci-host fmt has '%D'. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PERL!! : )
So what is a self-respecting Perl programmer to do? Haahaa, QUIT! Or shower and scrub with a wire brush! heehee... Bill Odom wnodom@intrasectTo: [EMAIL PROTECTED] ion.com cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: PERL!! : ) 06/20/02 03:00 PM Please respond to wnodom JP: While I agree with Brent (hi, Brent), it doesn't have to be an all-or-nothing decision. I've had a lot of success running Perl *with* ASP. In fact, I'm finishing a project right now that - has to run on IIS - has to run under ASP So what is a self-respecting Perl programmer to do? Use PerlScript, ActiveState's extension that allows Perl to run as a full-fledged ASP scripting language. You get all the advantages of ASP, all the power of Perl, and none of the gut-wrenching inadequacy of VBScript or soullessness of JavaScript. I've built very large applications this way. It really works. It's also a great way to introduce Perl to an all-Microsoft shop, demonstrate Perl's power and maintainability, and start to loosen the Microsoft death-grip. --Bill Odom Heh, I probably came off a bit too harsh, Micro$oft really does it all to themselves... - Perl is MUCH more widely used than ASP. - Perl is more maintainable (good management buzzword). I would bet the farm that there are more *GOOD* Perl programmers than ASP programmers. I would bet the ASP has more programmers, but most of them could not program their way out of a wet paper bag. - Perl undoubtably has more modules available than ASP. www.cpan.org - Does your boss *really* want to run IIS? What do you want to patch today? Note: If your boss is strictly set on running IIS, RUN, don't walk to the nearest exit!When (and I said when) it gets hacked, who is going to take the fall??? Brent -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PERL!! : )
You know, I'm a not a Microsoft fan by any means (if you ask people who know me, you would probably get more rash descriptions of how I feel about them). When it comes to using an os as a client, Windows 2000 is pretty nice. But when it comes to running a server, I will avoid windows at all costs. I have two Linux servers, one for my local development, and one for a business I'm starting (linxsatellite.com), and they are beyond awesome. I do have a win2k server that I have to run out of necessity. I've got a Win only chat application for ldschat.com and will soon be hosting the site on that machine too (to cut down on costs since ldschat.com doesn't make money), but I WOULD NEVER TOUCH IIS. Apache 2.0 for win32 is a boon for any who MUST run a Windows machine as a server. If I had my choice of servers, Linux rocks my world. David - Original Message - From: Bill Odom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 20, 2002 2:00 PM Subject: Re: PERL!! : ) JP: While I agree with Brent (hi, Brent), it doesn't have to be an all-or-nothing decision. I've had a lot of success running Perl *with* ASP. In fact, I'm finishing a project right now that - has to run on IIS - has to run under ASP So what is a self-respecting Perl programmer to do? Use PerlScript, ActiveState's extension that allows Perl to run as a full-fledged ASP scripting language. You get all the advantages of ASP, all the power of Perl, and none of the gut-wrenching inadequacy of VBScript or soullessness of JavaScript. I've built very large applications this way. It really works. It's also a great way to introduce Perl to an all-Microsoft shop, demonstrate Perl's power and maintainability, and start to loosen the Microsoft death-grip. --Bill Odom Heh, I probably came off a bit too harsh, Micro$oft really does it all to themselves... - Perl is MUCH more widely used than ASP. - Perl is more maintainable (good management buzzword). I would bet the farm that there are more *GOOD* Perl programmers than ASP programmers. I would bet the ASP has more programmers, but most of them could not program their way out of a wet paper bag. - Perl undoubtably has more modules available than ASP. www.cpan.org - Does your boss *really* want to run IIS? What do you want to patch today? Note: If your boss is strictly set on running IIS, RUN, don't walk to the nearest exit!When (and I said when) it gets hacked, who is going to take the fall??? Brent -- 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]
calling sub based on database list?
Ok, I got sorta a hard questionI think that involves calling randomly changing subrutines. What I'm Trying to do is this. 5 libaries are required into my CGI(PERL) program Each of them has their own set of subrutines. Now when someone accesses my site they also send a page referance eg main.cgi?page=home What im trying to get my code to do is take 'home' and then start runing subrutines based on a file entry that can be edited from my admin section of this site. So basicly the file looks like this. home|htmlBody,Header,homebody,footer So it should get the list of subrutined to call but I can not figure out how to call them since they are strings and not hard coded into the code. Basicly I can get the values and print them out but not call them. Does anyone have and tips for calling a sub using the name from a string? perl.call('htmlBody') does not work as one site pointed out. I guess thats for something else all together. Thanx Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Free hosting?
Does anybody knows where I can find free site hosting that supports CGI? JP, from Brazil. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POSIX 'strftime' issue
have you tried reading the documentation for posix? from the docs: If you want your code to be portable, your format (fmt) argument should use only the conversion specifiers defined by the ANSI C standard. These are aAbBcdHIjmMpSUwWxXyYZ%. i don't see 'D' in that list. and besides, your earthlink fmt has '%1d', while your ci-host fmt has '%D'. OK I did try to read the documentation, and have changed my code: print OUT strftime('%A, %B %ld, %Y %I:%M %p',localtime) ,\n; But look here, http://www.coraconnection.com/cgi-bin/schedule.pl what is going wrong? (see the date string) Thanks -- have great weekend Dave G. On 6/21/02 at 7:59 AM, fliptop [EMAIL PROTECTED] wrote: David Gilden wrote: I have small problem here, check out the following: #!/usr/bin/perl use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use POSIX 'strftime'; # This works fine on Earthlink's servers using: print OUT strftime('%A, %B %1d, %Y %I:%M %p',localtime) ,\n; #returns: Wednesday, June 19, 2002 02:01 PM #but at CI-Host, I get this string: print OUT strftime('%A, %B %D, %Y %I:%M %p',localtime) ,\n; #returns: Wednesday, June d, 2002 12:53 PM How can I fix this to work at CI-Host, (I think they are runing Apache) Cora Connection: Your West African Music Source Resources, Recordings, Instruments More! http://www.coraconnection.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POSIX 'strftime' issue
David Gilden wrote: print OUT strftime('%A, %B %ld, %Y %I:%M %p',localtime) ,\n; But look here, http://www.coraconnection.com/cgi-bin/schedule.pl what is going wrong? (see the date string) hrm - dunno. i use date::calc myself for date manipulation. maybe someone else more familiar with posix and its cross-platform inconsistencies can answer this one? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI.pm
The template replacement I cant give because I wasn't the one who wrote it, but Form.pm is my CGI.pm replacement for receiving data. I wrote it approximately 2 1/2 years ago and have been tweaking and improving it since. I'll release it to C-PAN within the next month I think, look for it there. It will be called Form.pm written by David Hicken. David - Original Message - From: Niko Gunadi [EMAIL PROTECTED] To: Beginners cgi [EMAIL PROTECTED] Sent: Friday, June 21, 2002 3:43 AM Subject: Re: CGI.pm On Thu, Jun 20, 2002 at 10:51:14AM -0500, David T-G wrote: David -- ...and then [EMAIL PROTECTED] said... % % Personally, I don't. My development team and I have created a few tools that we use which are % extremely quick and easy to use. I created a CGI input retrieval lib that works on both Linux and Sounds pretty slick, even if fairly customized. Got a pointer to it for us lookers? Your var and replacement stuff sounds quite interesting. -- 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: CGI.pm
--- [EMAIL PROTECTED] wrote: The template replacement I cant give because I wasn't the one who wrote it, but Form.pm is my CGI.pm replacement for receiving data. I wrote it approximately 2 1/2 years ago and have been tweaking and improving it since. I'll release it to C-PAN within the next month I think, look for it there. It will be called Form.pm written by David Hicken. David David, That sounds good. It would be nice to see robust, well-written alternatives to CGI.pm. Any chance you can submit it for peer review? 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]