Re: hellp improve efficiency

2007-04-29 Thread yaron
Hi, You can use the following it will reduce the amount of : ... while (<>) { $uri = (split)[0]; $uri =~ s#www\.example\.com/(v\d?|so)#$1.example.com# or $uri =~ s#www\.example\.com/admin/\?.*#www.example.com/admin/# or $uri =~ s#www\.example\.com/([wulp])(\d+)/#$2.$1.example.com# or $u

Re: hellp improve efficiency

2007-04-28 Thread Jeff Pang
2007/4/29, Steve Finkelstein <[EMAIL PROTECTED]>: Perhaps I'm misunderstanding what you're ultimately trying to accomplish. However, if you're doing what I think you're doing and you're using Apache, look into mod_rewrite: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html From my knowledg

Re: hellp improve efficiency

2007-04-28 Thread Steve Finkelstein
Perhaps I'm misunderstanding what you're ultimately trying to accomplish. However, if you're doing what I think you're doing and you're using Apache, look into mod_rewrite: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html - sf Jen mlists wrote: > Hello members, > > I wrote a perl script for

Re: hellp improve efficiency

2007-04-28 Thread Tom Phoenix
On 4/28/07, Jen mlists <[EMAIL PROTECTED]> wrote: }elsif ($uri =~ m|www\.example\.com/v2/|o) { $uri =~ s|www\.example\.com/v2/|v2.example.com/|; The /o modifier isn't desirable there. Also, because a s/// will only replace if the match part succeeds, you can skip the test: $uri