Page is a not externally linkable
lindajames - 9:09 pm on Jan 30, 2004 (gmt 0)
$content=~s/Error Pages/Er1234567ror Pages/g; but the problem is i cannot get it to work with my code. my code looks as follows, can anyone please help me get the above code to work with the code below where it reads if ($response->is_success && : my $request = GET $query_string; $request->authorization_basic($User_name, $Password); my $response = $ua->request($request); if ($response->is_success && $Content!~ /error (?!pages)/i) {
sugarkane mentioned that i can use the following:
if ($response->is_success && $Content!~ /error/i) {
$content=~s/Er1234567ror Pages/Error Pages/g;
# carry on with whatever you're doing if 'error' is found
}
else {
$content=~s/Er1234567ror Pages/Error Pages/g;
# carry on with whatever you're doing if 'error' is NOT found
}
$Content = $response->content;
return $response->content;
}
else {
$Error_msg = $response->message;
return undef;
}
}