Re: Repost: Script won't exec

2001-07-17 Thread Jeff Yoak
It looks like you have a ')' where you want a '}' there. Cheers, Jeff At 03:17 PM 7/17/01 -0600, Customer Service wrote: >Syntax error near $ENV{'REQUEST_METHOD') >Â…Aborted due to compilation errors > > Script follows: >#!c:/perl/bin/perl -w > >if ($ENV{'REQUEST_METHOD') eq 'GET')

Re: Perl Style Question

2001-06-26 Thread Jeff Yoak
At 06:05 PM 6/26/01 -0400, Gross, Stephan wrote: >Why is this style > >if ($x) { > do this; > do that; >} > >typically preferred over > >if ($x) >{ >do this; >do that; >} > This tends to be a hotly debated religious issue. There are people who use that later abomination. ;-) T

RE: testing on email characters

2001-06-14 Thread Jeff Yoak
At 02:17 PM 6/13/01 -0700, Peter Cornelius wrote: >I've never used Email::Valid but it may be a good way to solve the problem, >I'd be impressed if it actually catches all valid addresses (and very >happy). I've always just accepted that there would be some special cases >that wouldn't be caught

Re: testing on email characters

2001-06-13 Thread Jeff Yoak
At 06:45 PM 6/12/01 +0200, Jos Boumans wrote: >Please, if you try and flame posts, get your facts straight. That seems a little harsh. I don't think it was intended as a flame or to be insulting in any way. It was just suggesting what the author thought was a better way to do it. :-) >2nd:

Re: Perl FAQ A Day

2001-06-11 Thread Jeff Yoak
At 07:58 PM 6/11/01 -0400, Kevin Meltzer wrote: >Odd that you get errors, I don't. http://www.perlfaq.com/frequent.html is broken. There was another page with a similar message. Last time it was one of the first pages I visited, but I can't seem to locate it again. Somehow I missed the "Ent

Re: Matching '@' symbol in regexp

2001-06-11 Thread Jeff Yoak
At 06:24 PM 6/11/01 -0400, Jeff 'japhy' Pinyan wrote: > >Can anybody suggest me how to match '@' symbol in a regexp to match e-mail > >ids etc. > >I suggest you don't try to write your own email-matching regex. But just >because you asked, use \@. This list is a really great experiment in handli

Re: Perl FAQ A Day

2001-06-11 Thread Jeff Yoak
At 10:23 PM 6/11/01 +0200, Evgeny Goldin (aka Genie) wrote: >Cool, although I didn't have to read FAQ ( prefer to find the answers >by myself ;) it's still a good idea to read it occasionally. > >Are you planning to get the contents of http://www.perlfaq.com too ? Unlikely. As I mentioned in th

Re: Perl FAQ A Day

2001-06-11 Thread Jeff Yoak
At 01:58 AM 6/12/01 +0700, Hasanuddin Tamir wrote: > > http://perl.faq-by-day.org/ . > >I've subscribed for a few weeks, and I like it. It's really great >to have such a resource. Thanks a lot for the effort. You do a >wonderful job. Actually, I do a pretty terrible job. :-) That's the 1997

Perl FAQ A Day

2001-06-11 Thread Jeff Yoak
Hi All, It occurred to me that some of you might be interested in a little mailing list I maintain. It is broadcast only and mails a randomly selected question / answer pair from the Perl FAQ each day to everyone on the list. Nice way to pick up selected bits of new Perl knowledge.

Re: Understanding Randal's answer

2001-06-09 Thread Jeff Yoak
At 07:10 AM 6/9/01 -0700, Randal L. Schwartz wrote: > >>>>> "Jeff" == Jeff Yoak <[EMAIL PROTECTED]> writes: > >Jeff> At 05:11 PM 6/8/01 -0500, Karen Cravens wrote: > >> On 8 Jun 2001, at 14:33, Randal L. Schwartz wrote: > >> > >&

Re: if then else

2001-06-09 Thread Jeff Yoak
At 09:01 AM 6/9/01 +0200, M.W. Koskamp wrote: >I think you dont need 'cmp' you need to use 'eq' in equations. >cmp is the alfa comparison function for sort things and stuff right? Ugh. I'd been up too long. I did mean 'eq' of course. The frightening thing is that I wrote that during a short b

Re: Matching one array against another

2001-06-08 Thread Jeff Yoak
P.S. Using hashes will eliminate duplicate entries from both lists. My assumption in suggesting this was that that wasn't a problem, but it is something that should be made explicit. Cheers, Jeff At 03:24 PM 6/8/01 -0700, Jeff Yoak wrote: >Code to do what you are looking for is

Re: Understanding Randal's answer

2001-06-08 Thread Jeff Yoak
At 05:11 PM 6/8/01 -0500, Karen Cravens wrote: >On 8 Jun 2001, at 14:33, Randal L. Schwartz wrote: > > > No, because newlines are the delimiters for sh's "read" operator. > >Is it just me, or does anyone else think newlines in filenames are >Evil Incarnate regardless? It's not just you. :-) Che

Re: Matching one array against another

2001-06-08 Thread Jeff Yoak
Code to do what you are looking for is inserted into the loop below, with comments at the end. At 10:02 PM 6/8/01 +, scott lutz wrote: >I have a question that to me seems like it would be part of the foundation >of Perl. > >@possible_matches = qw( list of items to match against ); > > >@l

Re: if then else

2001-06-08 Thread Jeff Yoak
At 05:35 PM 6/8/01 -0400, Luinrandir Hernson wrote: >ok, where did i go wrong now??? '=' is the assignment operator in Perl. '==' is the numeric comparison operator and 'cmp' is the alpha which is what you want here. Ugly gotcha since perl will hardly ever catch it for you. And damn all lang

Re: Understanding Randal's answer

2001-06-08 Thread Jeff Yoak
At 02:33 PM 6/8/01 -0700, Randal L. Schwartz wrote: > > "Atul" == Atul Khot <[EMAIL PROTECTED]> writes: > >Atul> Just out of curiosity ( and to learn more ), as you say, >suppose a >Atul> filename has an embedded newline in it. Referring to Mathew's solution, >Atul> can't we somehow r

Re: C++ in perl.

2001-06-08 Thread Jeff Yoak
At 09:45 AM 6/8/01 -0400, [EMAIL PROTECTED] wrote: >Hey all, > >I'm rather new to perl, and was just woundering what was the best route to >go to Exec c++ from within a perl script. Is there a PM for this? I haven't used it personally, but there has been a fair amount of talk about Inline.pm .

Re: Doubt in understanding

2001-06-08 Thread Jeff Yoak
At 02:16 PM 6/8/01 +0530, Rajanikanth Dandamudi wrote: >Hello, > > I had a problem understanding what the >expression ${1+"$@"} mean? can someone help me in >understanding this? That's bizarre. In what context did you encounter it? Cheers, Jeff

Re: Gurus Wanted!!

2001-06-08 Thread Jeff Yoak
At 11:50 PM 6/7/01 +, scott lutz wrote: >I have a this fancy bit of recursive search and replace code that I picked >up somewhere, but I would greatly appreciate it if one of the gurus could >explain it in English for me: > >find . -type f -print0 | xargs -0 perl -pi -e 's/>/<>/g' Joh