[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex quickie


On 26 Apr 2007, at 20:04, John ORourke wrote:

Come on people, someone's gotta do this for a laugh...

&{"do_".lc(($r->uri()=~/(\w+)\.com\//i))}();

sub AUTOLOAD { return undef; }
sub do_google { }
sub do_yahoo { }

Nice :)

--
Andy Armstrong, hexten.net


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.