in reply to Grabbing Specific Image

There is a misprint in the URL; and you're trying to open a direcrory for writing.

The line where you're setting $image_url is also suspicious; what's $url?

Upd And if you actually meant http://www.dimages.com/image_sample.jpg — you need to do something about URL dispatch there, because all http://www.dimages.com/* URLs seem to return the same page. Also, add <body> tags to that page (it seems to be a work in progress, and I boldly assume it's yours; excuse me if it is not so).

Replies are listed 'Best First'.
Re^2: Grabbing Specific Image
by Anonymous Monk on May 01, 2007 at 16:05 UTC
    I am sorry, it should be
    $image_url = "http://www.dimages/image_sample.gif" unless $image_url = +~ m{^http://};