my $location_id; if ($resp->is_success) { $location_id = $resp->header( 'Location' ); } print $location_id;
Update: Now that the code is legible it is easy to see that you have declared $location_id twice in the same block. If you had used warnings this would have been alerted to you. Don't double-declare.
In reply to Re: how to get the local variable value outside the box
by hippo
in thread how to get the local variable value outside the box
by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |