RE: Please, ASP or PERL?

2002-06-21 Thread Joel Hughes
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

Re: PERL!! : )

2002-06-21 Thread Bill Odom
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

Re: fetchall problem

2002-06-21 Thread Felix Geerinckx
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 =

Re: RE: Please, ASP or PERL?

2002-06-21 Thread Vikrama Dhiman
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

Chart::Plot-Probs

2002-06-21 Thread Konrad Foerstner
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

Re: CGI.pm

2002-06-21 Thread Niko Gunadi
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

Re: Chart::Plot-Probs

2002-06-21 Thread fliptop
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

2002-06-21 Thread fliptop
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;

Re: PERL!! : )

2002-06-21 Thread Brent Michalski
So what is a self-respecting Perl programmer to do? Haahaa, QUIT! Or shower and scrub with a wire brush! heehee... Bill Odom

Re: PERL!! : )

2002-06-21 Thread perl-dvd
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

calling sub based on database list?

2002-06-21 Thread WyvernGod
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

Free hosting?

2002-06-21 Thread joao silva
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

Re: POSIX 'strftime' issue

2002-06-21 Thread David Gilden
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,

Re: POSIX 'strftime' issue

2002-06-21 Thread fliptop
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

Re: CGI.pm

2002-06-21 Thread perl-dvd
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

Re: CGI.pm

2002-06-21 Thread Ovid
--- [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

perl prob?

2002-06-21 Thread Javeed SAR
Hi, I am a begginer in perl? i have a doubt. when i create a file it should not have space bar in it's file name; eg help file if it is there it should not create the file, it should throw a error message space in file name not allowed can u help me in this. regards javeed

Please explain forking

2002-06-21 Thread Langa Kentane
Greetings, I wish to use the fork() function on one of my scripts. I would like more clarity on the way it works. Take for instance the ff code: Sub mysub { while (THATFILE) If ($_ eq SCANME) { fork() system(nessus thathost);

Re: perl prob?

2002-06-21 Thread David T-G
Javeed -- Is there a particular reason you sent your note to Shishir directly? I've removed him from the Cc: line in case that matters... ...and then Javeed SAR said... % % Hi, Hello! % % I am a begginer in perl? % i have a doubt. Welcome :-) % % when i create a file it should not

Re: Formatting

2002-06-21 Thread Marco Antonio Valenzuela Escárcega
On Thu, 2002-06-20 at 22:42, Shishir K. Singh wrote: Hi, hi I need to format a string in a fixed width field. The string may be less than the length of the format, or may be greater. If less, then it should get padded with spaces (left or right justified , like using - in sprintf), if

Fwd: Re: Please explain forking

2002-06-21 Thread Marco Antonio Valenzuela Escárcega
On Thu, 2002-06-20 at 23:30, Langa Kentane wrote: Greetings, I wish to use the fork() function on one of my scripts. I would like more clarity on the way it works. Take for instance the ff code: Sub mysub { while (THATFILE) If ($_ eq SCANME) { fork()

Re: Please explain forking

2002-06-21 Thread Sudarsan Raghavan
Langa Kentane wrote: Greetings, I wish to use the fork() function on one of my scripts. I would like more clarity on the way it works. Take for instance the ff code: Sub mysub { while (THATFILE) If ($_ eq SCANME) { fork() After the fork call

Re: Please explain forking

2002-06-21 Thread Felix Geerinckx
on Fri, 21 Jun 2002 06:30:49 GMT, [EMAIL PROTECTED] (Langa Kentane) wrote: I wish to use the fork() function on one of my scripts. I would like more clarity on the way it works. Take for instance the ff code: Sub mysub { while (THATFILE) If ($_ eq SCANME) {

Re: Regex Match, double chars

2002-06-21 Thread Kevin Pfeiffer
On Wednesday 19 June 2002 21:46, Akens, Anthony wrote: Thanks for the explanation - breaking it down like that really helps! If no one's guessed yet, I'm using the regex to parse a passwd file for blank passwords. [...] Speaking of breaking these (regexes) down, I just started working

Re: Any Site can recommand to me ?

2002-06-21 Thread Jaime Hourihane
roberts perl tutorial search on google -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using Net::SMTP

2002-06-21 Thread Ramprasad A Padmanabhan
Drieux wrote: On Thursday, June 20, 2002, at 02:02 , Nate Brunson wrote: is there a way I can get Net::SMTP to return errors that it might encounter into a variable, or something? so that on the page that pops up after the mail is sent, it can display errors if there were any. I have

Re: Formatting

2002-06-21 Thread John W. Krahn
Shishir K. Singh wrote: Hi, Hello, I need to format a string in a fixed width field. The string may be less than the length of the format, or may be greater. If less, then it should get padded with spaces (left or right justified , like using - in sprintf), if greater, then the string

Running script.pl on Win2k Server

2002-06-21 Thread A Taylor
Hi all, Firstly, thanks for all your help so far, really great. I have installed Perl on my Windows 2000 Server and can run perl scripts from the command line (which is really cool ;-) !!). The trouble I am having now is that I want to run Perl scripts as part of a web site and I cant figure

browsing through directory

2002-06-21 Thread Jayashankar Nelamane Srinivasarao
Hi All Please tell me how to proceeed. I have been successfull with writing the script for going through the directory and executing a command. But I have tried in vain to modify this code to be able to recursively run the command through the whole sub-directories, whichever is there. The

Re: Running script.pl on Win2k Server

2002-06-21 Thread A Taylor
Hi David - thanks AGAIN for your help. Wow - I will have to start paying you tution fee's soon !! ha ha Can I ask: First, post to the cgi-beginners list for CGI questions How do I get myself on this mailing list ?? Most likely, you need to do some configuration of the server OH yes -

Chart::Plot

2002-06-21 Thread Konrad Foerstner
Hi folks, I have some problems with the Chart::Plot modul: I started to use the 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

Re: browsing through directory

2002-06-21 Thread Nigel Peck
I used this to recursively process a directory tree and upload the files via ftp, you should be able to get what you need from it, sub uploadfiles { my($localpath, $remotepath) = @_; (opendir(DIR, $localpath) print Processing the . $localpath . directory\n) || (print Failed to

Re: Running script.pl on Win2k Server

2002-06-21 Thread Dave K
Anadi, http://lists.perl.org/ will take you to the right place. beginners-cgi is what you are after. Check out dbi-users also. DBI will open access to many other databases (I use Oracle and 2 free ones MySql and Postgresql) -David A Taylor [EMAIL PROTECTED] wrote in message [EMAIL

Re: Chart::Plot

2002-06-21 Thread Jonathan E. Paton
--- Konrad Foerstner [EMAIL PROTECTED] wrote: Hi folks, I have some problems with the Chart::Plot modul: I started to use the 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

Re: browsing through directory

2002-06-21 Thread Felix Geerinckx
on Fri, 21 Jun 2002 12:16:15 GMT, [EMAIL PROTECTED] (Jayashankar Nelamane Srinivasarao) wrote: But I have tried in vain to modify this code to be able to recursively run the command through the whole sub-directories, whichever is there. use File::Find; -- felix -- To unsubscribe,

RE: Formatting

2002-06-21 Thread Shishir K. Singh
Hi, Hello, I need to format a string in a fixed width field. The string may be less than the length of the format, or may be greater. If less, then it should get padded with spaces (left or right justified , like using - in sprintf), if greater, then the string should get truncated to

Re: homemade virus scanner, is this a good method?

2002-06-21 Thread zentara
On Thu, 20 Jun 2002 17:43:29 -0700, [EMAIL PROTECTED] (John W. Krahn) wrote: Zentara wrote: I'm starting work on my own virus scanner. I'm especially looking for ways to convert to hex more efficiently, my $hexstring = '58354f2150254041505b345c505a'; my $hexlen = length( $hexstring ) / 2; my

Perl programmer born and bred

2002-06-21 Thread Nigel Peck
Something occured to me the other day and I'm interested to know what people's opinions are on this list. When I'm reading the camel or other Perl books such as Perl and XML, the majority of the humour is related to The Hobbit, Lord of the Rings and The Hitch Hiker's Guide to the Galaxy. These

calling sub based on database list

2002-06-21 Thread WyvernGod
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

Free hosting?

2002-06-21 Thread joao silva
Does anybody know where I can find free hosting wich supports CGI? JP, from Brazil. The next World Champion :) _ Send and

Re: Perl programmer born and bred

2002-06-21 Thread Jeff 'japhy' Pinyan
On Jun 21, Nigel Peck said: Something occured to me the other day and I'm interested to know what people's opinions are on this list. When I'm reading the camel or other Perl books such as Perl and XML, the majority of the humour is related to The Hobbit, Lord of the Rings and The Hitch Hiker's

Re: Perl programmer born and bred

2002-06-21 Thread drieux
On Friday, June 21, 2002, at 08:38 , Nigel Peck wrote: [..] Or is it d, something I shouldn't be wasting my time thinking about so move on (boring git). There are two official answers here: a) This is a Matter of Religion, if you do not use the Module Religion

Re: calling sub based on database list

2002-06-21 Thread Jeff 'japhy' Pinyan
On Jun 21, [EMAIL PROTECTED] said: 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

Re: Perl programmer born and bred

2002-06-21 Thread bob ackerman
On Friday, June 21, 2002, at 09:15 AM, drieux wrote: On Friday, June 21, 2002, at 08:38 , Nigel Peck wrote: [..] Or is it d, something I shouldn't be wasting my time thinking about so move on (boring git). snip IT IS A SCARY PLACE OUT THERE!!! ciao drieux or 'out there' is a place

Re: Perl programmer born and bred

2002-06-21 Thread David Winters
On Fri, 21 Jun 2002, bob ackerman wrote: On Friday, June 21, 2002, at 09:15 AM, drieux wrote: On Friday, June 21, 2002, at 08:38 , Nigel Peck wrote: [..] Or is it d, something I shouldn't be wasting my time thinking about so move on (boring git). snip IT IS A SCARY PLACE OUT THERE!!!

Re: Perl programmer born and bred

2002-06-21 Thread David Winters
On Fri, 21 Jun 2002, Jeff 'japhy' Pinyan wrote: On Jun 21, Nigel Peck said: Something occured to me the other day and I'm interested to know what people's opinions are on this list. When I'm reading the camel or other Perl books such as Perl and XML, the majority of the humour is related to The

Tolkien, Hobbits and Perl was Re: Perl programmer born and bred

2002-06-21 Thread drieux
On Friday, June 21, 2002, at 09:07 , Jeff 'japhy' Pinyan wrote: [..] First off my complements for the citations from the holy text. Few general purpose perlers go in and read the header files. Perhaps this is because programmers are of the sci-fi/fantasy book-reading ilk, and LotR is perhaps

Re: calling sub based on database list

2002-06-21 Thread Jonathan E. Paton
--- [EMAIL PROTECTED] wrote: Ok, I got sorta a hard questionI think that involves calling randomly changing subroutines. Hmm... instantanously the security alarm bell sounds. What I'm trying to do is this. 5 libaries are required into my CGI(PERL) program. Each of them has their own set

Re: browsing through directory

2002-06-21 Thread John W. Krahn
Jayashankar Nelamane Srinivasarao wrote: Hi All Hello, Please tell me how to proceeed. I have been successfull with writing the script for going through the directory and executing a command. But I have tried in vain to modify this code to be able to recursively run the command through

Re: Formatting

2002-06-21 Thread John W. Krahn
Shishir K. Singh wrote: Thanks to Mark, John, David and Timothy!! I get the results if I use the combination of eg $myVar = 'ABCDEFGHIJKLMNOP'; $newVar = pack('A10',$myVar); $newVar should have 'ABCDEFGHIJ'; # Works and faster than sprintf eg $myVar = 'ABCD'; $newVar =

Re: homemade virus scanner, is this a good method?

2002-06-21 Thread John W. Krahn
Zentara wrote: On Thu, 20 Jun 2002 17:43:29 -0700, [EMAIL PROTECTED] (John W. Krahn) wrote: Zentara wrote: I'm starting work on my own virus scanner. I'm especially looking for ways to convert to hex more efficiently, my $hexstring = '58354f2150254041505b345c505a'; my $hexlen =

Re: browsing through directory

2002-06-21 Thread John W. Krahn
John W. Krahn wrote: You should probably use File::Find use warnings; use strict; use File::Find; my $rootdir = 'C:/Temp/Test'; my @dirs; find( sub { -d and # is it a directory? !/^\.\.?$/ and # don't want . and .. directories push @dir,

Simulate `sh -x'

2002-06-21 Thread Harry Putnam
Sometimes I'd like to run a perl program in a similar way as one can run a shell script with the -x switch. Where all commands and actions are printed to tty as the occur. How does one simulate that with perl? I suspect it may be the -d flag (debug) but I have no experience at all with that.

Re: Perl programmer born and bred

2002-06-21 Thread Greg Matheson
On Fri, 21 Jun 2002, Nigel Peck wrote: Perl books such as Perl and XML, the majority of the humour is related to The Hobbit, Lord of the Rings and The Hitch Hiker's Guide to the Galaxy. These are my favorite books. Is it a) a coincidence b) that they're so popular with people from all