> if ( ( $hash -> { $paragraph } ) =~ > s/###(\w+.*\.jpg)###/($text_link)/ ) {
Obviously you ain't using warnings or strict if $text_link has any chance of being undefined. Also, you should have a else clause, looking something like: else { undef $test_link; } Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]