On Fri, Sep 26, 2003 at 03:13:43PM +0100, Hon Guin Lee - Web Producer - SMI Marketing wrote: > Hi, > if ($page = undef) { > print "Couldn't retrieve $url"; > }
Thats doesn't test for whether $page is undefined; in fact it assigns the undef value to $page. You want something like. unless (defined $page) { print "Couldn't retrieve $url"; } -- "Do not dabble in paradox, Edward, it puts you in danger of fortuitous wit." Lady Croom - Arcadia