Re: changing behavior by user command

2002-06-07 Thread Janek Schleicher
David T-G wrote at Fri, 07 Jun 2002 16:45:38 +0200: > I'm not sure about the ignore case... If I read it right, some $pattern will become > "(?i)$pattern". I guess, then, (?i)pat is like /pat/i otherwise? > Yep. The (?i) switches ignorecase in regexes on, while (?-i) switches it off. You coul

Re: changing behavior by user command

2002-06-07 Thread David T-G
Janek, et al -- ...and then Janek Schleicher said... % % Nikola Janceski wrote at Fri, 07 Jun 2002 15:02:22 +0200: % % > perhaps use qr// to "precompile" the search instead and use that new precompiled var within your % > loop so you don't evaluate the if conditions each looptime. ... % % Eve

RE: changing behavior by user command

2002-06-07 Thread Janek Schleicher
Nikola Janceski wrote at Fri, 07 Jun 2002 15:02:22 +0200: > perhaps use qr// to "precompile" the search instead and use that new precompiled var >within your > loop so you don't evaluate the if conditions each looptime. > > my $search; >if ( $WholeMatchOnly ) >{ > if ( $IgnoreCase

Re: changing behavior by user command

2002-06-07 Thread David T-G
Nikola, et al -- ...and then Nikola Janceski said... % % perhaps use qr// to "precompile" the search instead and use that new % precompiled var within your loop so you don't evaluate the if conditions % each looptime. Oh, cool! Thanks! % % my $search; ... Thanks also for the example, since

RE: changing behavior by user command

2002-06-07 Thread Nikola Janceski
id T-G [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 8:43 AM > To: perl beginners > Subject: changing behavior by user command > > > Hi, all -- > > So I have this mp3 database script idea and I'm starting to > move into it > (it feels good to think p

changing behavior by user command

2002-06-07 Thread David T-G
Hi, all -- So I have this mp3 database script idea and I'm starting to move into it (it feels good to think perlishly again, and I'm going to want to be able to ignore case or not and search on substrings or not in my code. That's always been a problem for me: how can I modify my behavior based