> I ended up going with this:
>   if ($Scratch->{url} =~ /^https?:\/\/images\.google\./) {
> Does that look OK?

Variant of your code:

    if ( $scratch->{url} =~ m#^https?://images\.google\.# ) {

But you'd better go with Randal's "use URI;" advice.

You're right,  I hadn't grasped what URI was about before.

- Grant

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to