It works.
Btw you still have some scoping wrong:
if (!$code_returned) { my $code_returned = "404"; }
....if that block ever executes, your update afterwards will insert nothing into Links_Status as $code_returned will only have the value 404 for that if block.
Btw you still have some scoping wrong:
if (!$code_returned) { my $code_returned = "404"; }
....if that block ever executes, your update afterwards will insert nothing into Links_Status as $code_returned will only have the value 404 for that if block.