The variable location_id's scope is inside the box only, but I want to use the same variable and its value. How Can I use that variable and its value outside the box.if ($resp->is_success) { my $location_id= $resp->header( 'Location' ); #my $str = print "Received reply: $message\n"; # print "$message\n"; $location_id=~ /.*\/(\d+)$/; my $location_id= $1 || ''; print "$location_id\n"; }
In reply to how to get the local variable value outside the box by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |