RE: FAQ
Title: RE: FAQ HEY! In my own defense: -- I only did that once -- I was referring to Time::Local (not localtime :) -- I am a bonehead -- it really is counter-intuitive to have the month 0-based and the day and year 1-based. Especially since the months are commonly referred to by their 1-based position within the year. But I digress... newbies don't always know *where* to look even when you tell them. > I don't think there is a need for Yet-Another-FAQ. I think people need > to put a little bit of effort into looking for answers to their > questions before posting. My favorite is when people ( who presumedly > haven't been using Perl for more than a few weeks ) declare they might > have found a bug in some common function that people have been using > since 1987(so says -v). I am referring to the popular "$mon from > localtime is off by one month, is this a bug in Perl?". I think if > people would: >
Re: FAQ
"Herbold, John W." wrote: > > I have to say, that I like the idea of an auto-responder for the following > reasons. > > 5) An auto-responder could post the reply as well as send the poster an > email, or at least notes the post some way so others will not waist their > time responding. Except that people will respond, anyway, sometimes 24-48 hours after the fact, because they haven't read the FAO-server's reply. It happens here, with our manual FAQ-servers. Not to criticize the FAQ-answerers unduly, but IMHO it won't cut down on the traffic noticeably, and it may paradoxically encourage FAQs from new list members who see that their every question is answered immediately (especially if an email is sent off to the FAQer in addition to the one sent to the list). Cameron -- Cameron Dorey Associate Professor of Chemistry University of Central Arkansas Phone: 501-450-5938 [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
>My favorite is when people ( who presumedly > haven't been using Perl for more than a few weeks ) declare they might > have found a bug in some common function that people have been using > since 1987(so says -v). I am referring to the popular "$mon from > localtime is off by one month, is this a bug in Perl?". This tendency is highlighted in one of my favorite books about programming, "The Pragmatic Programmer", in which a colleague goes about for weeks thinking that the select() system call is broken on Solaris somehow until he realizes its his own stupid fault for not having read the docs. Over time, this became a slogan for the author's development team: "select() isn't broken". It's easy to blame the infrastructure, but you're rarely justified in doing so. It's like blaming the road for your own bad driving. jpt --*-- If there's a typo in the text above, it's probably just a bug in your email program... --*-- ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
I have to say, that I like the idea of an auto-responder for the following reasons. 1) People will always post a question to the list with out researching. 2) There is nothing anybody can do about #1. 3) A FAQ with every answer in the world does no good if people do not check it before posting. ( 4) Replying to a post to check the FAQ or RTFM, still takes time, and bandwidth, and sometimes creates threads that take more time and bandwidth then just answering the question could have done. 5) An auto-responder could post the reply as well as send the poster an email, or at least notes the post some way so others will not waist their time responding. Just my .02 John -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:18 PM To: ActiveState's Perl Win32 Users list Subject: Re: FAQ > Yup - a decent faq and a reminder work rather well for most FAQ's assuming > the users read some emails before posting and didn't subscribe just to ask a > question. An auto-responder would be unpopular and put new users off, as I don't think there is a need for Yet-Another-FAQ. I think people need to put a little bit of effort into looking for answers to their questions before posting. My favorite is when people ( who presumedly haven't been using Perl for more than a few weeks ) declare they might have found a bug in some common function that people have been using since 1987(so says -v). I am referring to the popular "$mon from localtime is off by one month, is this a bug in Perl?". I think if people would: read a few chapters in any Perl book search perldoc -f search perldoc -q search CPAN search google search list archives instead of doing nothing not only will the need for a FAQ might be diminished, but people might find answers quicker. For example if I wanted to do something with dates, a good place to look might be to look on CPAN in the Date:: catagory. Most answers to questions can found by appending the world 'perl' to the subject line and searching that string on Google. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: FAQ
> Yup - a decent faq and a reminder work rather well for most FAQ's assuming > the users read some emails before posting and didn't subscribe just to ask a > question. An auto-responder would be unpopular and put new users off, as I don't think there is a need for Yet-Another-FAQ. I think people need to put a little bit of effort into looking for answers to their questions before posting. My favorite is when people ( who presumedly haven't been using Perl for more than a few weeks ) declare they might have found a bug in some common function that people have been using since 1987(so says -v). I am referring to the popular "$mon from localtime is off by one month, is this a bug in Perl?". I think if people would: read a few chapters in any Perl book search perldoc -f search perldoc -q search CPAN search google search list archives instead of doing nothing not only will the need for a FAQ might be diminished, but people might find answers quicker. For example if I wanted to do something with dates, a good place to look might be to look on CPAN in the Date:: catagory. Most answers to questions can found by appending the world 'perl' to the subject line and searching that string on Google. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Date question
I use Date::Calc; although there are lots of Date modules available. paula -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen J Martin Sent: Wednesday, May 22, 2002 7:54 AM To: [EMAIL PROTECTED] Cc: Carl Jolley Subject: Re: Date question On Tue, 21 May 2002 22:11:53 Carl Jolley wrote: >This is a difficult question but I'll try to answer. >OR if you wanted to correctly wrap from December to January of the >following year; > >my ($mday, $mon, $year) = (localtime(time))[3..5]; >$mon+=1; >$year+=1900; >my $startdate = sprintf "%02u/%02u/%u", $mon, $mday, $year; >if(++$mon==13) { > $mon=1; > $year++; >} >my $lastdate = sprintf "%02u/%02u/%u", $mon, $mday, $year+1900; > >On Tue, 21 May 2002 [EMAIL PROTECTED] wrote: > >> I have a question about my date snippet. It's more difficult even than that, e.g. on 31st May the code above will give 31st June, which is invalid. In fact, on my machine today it gives "06/22/3902", so adding 1900 to the year was not necessary. I could have a go at this, but surely it's been done before? By the way, what should you do with short months? Always advance by 31 days or just collapse several days to the last day of the month? Do banks/ accountants/ the law have a strict definition of "one month from today" that works in all cases? Is it different in the US/ UK/ Europe/ elsewhere? --- Steve Martin [EMAIL PROTECTED] Outgrown your current e-mail service? Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS. http://login.mail.lycos.com/brandPage.shtml?pageId=plus ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
Tillman, James wrote: > ;-) But even then only historically so. I share Lee's inability to > understand how Buffy the Vampire Slayer has even the > slightest thing to do > with Perl. Please consult with the london.pm PerlMongers group. Or better yet, with sunnydale.pm. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
> >Also I can reccomend a well trained infobot on irc - the > perl mongers have > >several very well informed infobots that do things like > whois and weather > >lookups as well as factoids on all thing perl related (monty > python, buffy > >the vampire slayer, photos of drunken perl mongers and camels) > > I yet to remain convinced of the relevance of childrens' TV to >perl... Hmmm. Seems Monty Python would be more relevant to Python than to Perl... ;-) But even then only historically so. I share Lee's inability to understand how Buffy the Vampire Slayer has even the slightest thing to do with Perl. I don't use IRC, by the way. Too much noise, not enough signal. jpt ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Re: Date question
I have used this little snippet for a lot of my programs. I know I'm jumping in line here but maybe this will work for you too: my @days = ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); my @months = ("January","February","March","April","May","June","July","August","September","October","November","December"); ($sec,$min,$hr,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); my $year = $year + 1900; then I just called it like this: $days[$wday], $months[$mon] $mday, $year Mark Bergeron -Original Message- From: "$Bill Luebkert"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue May 21 15:25:06 PDT 2002 Subject: Re: Date question >[EMAIL PROTECTED] wrote: > >> I have a question about my date snippet. >> >> my ($mday, $mon, $year) = (localtime(time))[3..5]; >> my $pagedate = sprintf "%02u/%02u/%u", $mon + 1, $mday, >> $year + 1900; >> >> The above will print out the date like "05/21/2002" >> >> How can I create the date exactically to the same day but >> to the following month? >> >> Then I would have: start date "05/21/2002" >>end date "06/21/2002" > > >Maybe add 1 to $mon ??? > > >> Or for whatever date > > >my ($mday, $mon, $year) = (localtime (time + $diff_in_secs_to_new_date))[3..5]; > >then feed the vars to timelocal (Time::Local) to get your future epoch time. > >You can flip back and forth between localtime and timelocal to get >exact days of month or month of year, etc. > >-- > ,-/- __ _ _ $Bill Luebkert ICQ=14439852 > (_/ / )// // DBE Collectibles Mailto:[EMAIL PROTECTED] > / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) >-/-' /___/_<_http://www.todbe.com/ > >___ >Perl-Win32-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
At 17:00 22/05/2002, Aaron Trevena wrote: > > >Actually its better to include the urls to the archive and the faq in the > > >email footer. > > > > That's a very bold statement - can you support it? > >Yup - a decent faq and a reminder work rather well for most FAQ's assuming >the users read some emails before posting and didn't subscribe just to ask a >question. Ah, the flaw in your argument! You're quite new here aren't you...?! >An auto-responder would be unpopular and put new users off, as >well as being a pain to maintain. I disagree with all but the last. If it posts to the e-mail address of the one who posted, who would it be unpopular with? If the message to the poster said something along the lines of "This may answer... if not your message may be answered by another subscriber..." Why would it be unpopular? >Of all the lists I have subscribed to none >use an auto-responder, usenet has managed without an autoresponder too. FAQs >and newbies are a social rather than technical issue and need to be >addressed as such. For a start, I'm not talking about "newbies", I'm talking about people who don't read FAQs - but above you assume that people don't post before reading FAQs, so we're on a different line here. As for "no-one has a wheel in my village, they must be useless"... you can see my point already I trust. >Having said that you could use an infobot hooked up to email to auto-respond >with helpful hints to the user, then post the mail to the list with the >auto-response appended on the end to show what the auto-responder said. That is pretty much my point. >Just blocking FAQs won't help - Who said "blocking"? >politely pointing out that FAQs are answered >in the docs and FAQ I do it all the time, my friend. >works better than flames or blocking users. I've never seen a flame war here in five years. > > I yet to remain convinced of the relevance of childrens' TV to perl... > >Many FAQs asked on here could be answered sharpish by Dipsy or Purl on >#london.pm and #perl respectively I take your word for it. But I yet to be convinced of the relevance of childrens' TV to Perl, though. Lee Lee Goddard perl -e "while(1){print rand>0.5?chr 47:chr 92}" ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Opening MS-SQL DB with Perl
I've found the article I mentioned below... In the April 2002 issue of Linux Journal (www.linuxjournal.com), "Connect to Microsoft SQL 2000 with the Perl Sybase Module" (pg.62) by Andrew Trice. provides an alternative to just ODBC connections... Joe. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph YoungquistSent: Tuesday, May 21, 2002 9:03 AMTo: [EMAIL PROTECTED]Subject: RE: Opening MS-SQL DB with Perl I'll shut-up, and learn to read :) I vaguely recall that there are some difficulties in connecting to MSSQL 2000 but cannot remember the article...it was in one of the Linux periodicals about 2 months ago...I'll see if I can find it a bit later on... And I apologize about my response to the question... Joseph Youngquist. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tillman, JamesSent: Tuesday, May 21, 2002 9:39 AMTo: 'Joseph Youngquist'; 'Dovalle Yankelovich'; 'Perl32 (E-mail)'Subject: RE: Opening MS-SQL DB with Perl Um, guys, the question was about MSSQL, not MySQL. However, as a testament to the power of DBI, the only line that has to change in your example is: my $DataSource = "DBI:mysql:$DataBase"; becomes my $DataSource = "DBI:ODBC:$DSNName"; #Where $DSNName is your DSN You'll need to fix the $Username variable, of course, and the password would be the 3rd parameter in the connect() method call. jpt -Original Message-From: Joseph Youngquist [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 21, 2002 9:29 AMTo: 'Dovalle Yankelovich'; 'Perl32 (E-mail)'Subject: RE: Opening MS-SQL DB with Perl You'll need the BDI module and the DBD::MySQL module. To connect to a database: my $dbh; my $DataBase = "Online"; my $DataSource = "DBI:mysql:$DataBase"; my $UserName = "userName\@localhost"; $dbh = DBI->connect($DataSource, $UserName); To insert a (new) row of data into a table: (One of a few ways to do it) my $statement; $statement = "INSERT INTO article VALUES ( '', '$Line_up', '$Line_up', '$Line_up', '0', '$Processed_state', '$Date', '$ModifiedTime', '$SectionType', '$SubSectionType', '$Filename', '$Story_link', '$Photo', '$Headline', '$Drophead', '$Byline', '$Story_text', '', '-1', '4')"; $sth = $dbh->prepare($statement);$sth->execute; There is just a little for an example, the DBD-MySQL documentation is a must read, the DBI is as well...they do explain very well the processes with plenty of example and snips of code to get you on your way. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dovalle YankelovichSent: Tuesday, May 21, 2002 10:04 AMTo: Perl32 (E-mail)Subject: Opening MS-SQL DB with Perl Hi, I need some help... I'm looking for perl script (example) which take data from MS-SQL (I need it to learn how it work, which modul is needed etc') Thanks Dovalle
RE: [PMX:#] RE: Perl scripts are crashing my MS-DOS window
> [EMAIL PROTECTED] wrote: > > Only if the shell for the system you are running on supports the > 2 file descriptor. Some shells (or at least one) don't because the > underlying OS philosophy is "if there are errors you should always > see them on the console because otherwise you might get confused". Carl - This is true. I don't use a supplementary shell - I'm using "cmd.exe" and the redirection works as I indicated. Dan. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
> At 15:23 22/05/2002, Aaron Trevena wrote: > > > Why don't we make a FAQ Auto-responder? > > > It could scan subjects and first ten lines for > > > a FAQ, and if it finds one, send the FAQ answer. > > > > > > So it wouldn't cope with the silliest questions, > > > but should get most > > > >Actually its better to include the urls to the archive and the faq in the > >email footer. > > That's a very bold statement - can you support it? Yup - a decent faq and a reminder work rather well for most FAQ's assuming the users read some emails before posting and didn't subscribe just to ask a question. An auto-responder would be unpopular and put new users off, as well as being a pain to maintain. Of all the lists I have subscribed to none use an auto-responder, usenet has managed without an autoresponder too. FAQs and newbies are a social rather than technical issue and need to be addressed as such. Having said that you could use an infobot hooked up to email to auto-respond with helpful hints to the user, then post the mail to the list with the auto-response appended on the end to show what the auto-responder said. Just blocking FAQs won't help - politely pointing out that FAQs are answered in the docs and FAQ works better than flames or blocking users. > I yet to remain convinced of the relevance of childrens' TV to perl... Many FAQs asked on here could be answered sharpish by Dipsy or Purl on #london.pm and #perl respectively A. -- Aaron J Trevena, BSc (Hons) www.head2head.co.uk Internet Application Developer Perl, UNIX, IIS/ASP ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
At 15:23 22/05/2002, Aaron Trevena wrote: > > Why don't we make a FAQ Auto-responder? > > It could scan subjects and first ten lines for > > a FAQ, and if it finds one, send the FAQ answer. > > > > So it wouldn't cope with the silliest questions, > > but should get most > >Actually its better to include the urls to the archive and the faq in the >email footer. That's a very bold statement - can you support it? >This is especially useful on mailing lists like this. > >Also I can reccomend a well trained infobot on irc - the perl mongers have >several very well informed infobots that do things like whois and weather >lookups as well as factoids on all thing perl related (monty python, buffy >the vampire slayer, photos of drunken perl mongers and camels) I yet to remain convinced of the relevance of childrens' TV to perl... Lee Goddard perl -e "while(1){print rand>0.5?chr 47:chr 92}" ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Sockets tutorial
If you are used to C , then Advanced Perl Programming by Sriram Srinivasan from O'Relly's is a good bet. He makes constant reference to C/Java , so it will help. You can check out this site for a rushy kind of example on how to use IO-Socket. Another source is the IO-Socket perldoc http://www.perlfect.com/articles/sockets.shtml -Original Message- From: Tim Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 3:17 PM To: perl-win32-user Subject: Sockets tutorial Hi all! I'm rather new to perl and even newer to sockets(even though i have been programming a very long time!). i've tryed to write apps in c, but failed because of the absence of a good tutorial. shurly it isn't that hard to create a conection to an other IP and send/receive info! Any help would be very helpful TIA ;) Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Sockets tutorial
Thankz all I must remebre to look at the perldoc :p Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Sockets tutorial
Title: RE: Sockets tutorial See: perldoc IO perldoc IO::Socket perldoc perlfaq9 > -Original Message- > From: Tim Fletcher [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 10:17 > To: perl-win32-user > Subject: Sockets tutorial > > > Hi all! > I'm rather new to perl and even newer to sockets(even though > i have been > programming a very long time!). i've tryed to write apps in > c, but failed > because of the absence of a good tutorial. shurly it isn't > that hard to > create a conection to an other IP and send/receive info! > Any help would be very helpful > TIA ;) > Tim > > ___ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs >
Re: Sockets tutorial
On Wed, 2002-05-22 at 09:17, Tim Fletcher wrote: > Hi all! > I'm rather new to perl and even newer to sockets(even though i have been > programming a very long time!). i've tryed to write apps in c, but failed > because of the absence of a good tutorial. shurly it isn't that hard to > create a conection to an other IP and send/receive info! > Any help would be very helpful There are two tutorials at www.perlmonks.org that deal with sockets. They are in the Tutorials section under the Network Programming heading. -- Steve ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Sockets tutorial
Tim Fletcher wrote: > > shurly it isn't that hard to > create a conection to an other IP and send/receive info! > Any help would be very helpful > TIA ;) perldoc IO::Socket::INET Also look at the RPC modules (PlRPC) and Net::Daemon. -- Simon Oliver ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Sockets tutorial
Hi all! I'm rather new to perl and even newer to sockets(even though i have been programming a very long time!). i've tryed to write apps in c, but failed because of the absence of a good tutorial. shurly it isn't that hard to create a conection to an other IP and send/receive info! Any help would be very helpful TIA ;) Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Date question
It depends on what you mean by "following month." How do you define the following month after May 31? Is it June 30? How do you define the following month after June 30? Is it July 30? or is it July 31? February 28 -> March 28? or March 31? Do you mean last number of the month, exactly 30 days after, or the same number as the previous month? It's all possible to do, you just have to know what you mean by "following month." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: Date question I have a question about my date snippet. my ($mday, $mon, $year) = (localtime(time))[3..5]; my $pagedate = sprintf "%02u/%02u/%u", $mon + 1, $mday, $year + 1900; The above will print out the date like "05/21/2002" How can I create the date exactically to the same day but to the following month? Then I would have: start date "05/21/2002" end date "06/21/2002" Or for whatever date Thanks in advance. Allan ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
ActivePerl help file
Is there an ActivePerl.chm with a working index ? The one in build 630 has a completely empty index :-( -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: [EMAIL PROTECTED]http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: FAQ
> Why don't we make a FAQ Auto-responder? > It could scan subjects and first ten lines for > a FAQ, and if it finds one, send the FAQ answer. > > So it wouldn't cope with the silliest questions, > but should get most Actually its better to include the urls to the archive and the faq in the email footer. This is especially useful on mailing lists like this. Also I can reccomend a well trained infobot on irc - the perl mongers have several very well informed infobots that do things like whois and weather lookups as well as factoids on all thing perl related (monty python, buffy the vampire slayer, photos of drunken perl mongers and camels) regards, A. -- Aaron J Trevena, BSc (Hons) www.head2head.co.uk Internet Application Developer Perl, UNIX, IIS/ASP ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
FAQ
Why don't we make a FAQ Auto-responder? It could scan subjects and first ten lines for a FAQ, and if it finds one, send the FAQ answer. So it wouldn't cope with the silliest questions, but should get most Lee Goddard perl -e "while(1){print rand>0.5?chr 47:chr 92}" ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Dumbass question
I also will do the following: Start->Settings->Control Panel->System->Advanced tab->Environment Variables button->System variables list, select and edit the PATHEXT variable, add '.PL;' to the variable string, and then click Okay on everything. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: "Moran, Neil (LDN Corp)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Active Perl" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 06:05 Subject: RE: Dumbass question > You can use the ASSOC and FTYPE commands at the command line to associate > the .pl extension with perl.exe, and any additional parameters you may > require, for example: > > ASSOC .pl=PerlScript > FTYPE PerlScript=perl.exe %1 %* > > would allow you to invoke a Perl script as follows: > > script.pl 1 2 3 > > If you want to eliminate the need to type the extensions, then do the > following: > > set PATHEXT=.pl;%PATHEXT% > > and the script could be invoked as follows: > > script 1 2 3 > > That should do it! The above, by the way, is ruthlessly cut'n'pasted from > the output of the HELP FTYPE command. ;-) > > Neil Moran > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 22 May 2002 11:54 > To: Active Perl > Subject: Dumbass question > > > How do you make it so that you don't have to type the '.pl' extension when > running perl scripts on Win2k? > > Yes, yes, I realise I should know this... > > Evan Morris > [EMAIL PROTECTED] > Tel: +27 11 792 2777 > Fax: +27 11 792 2711 ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs