Subject: | Eating strict under some circumstances |
See attached. Instead of getting something like 'Global symbol
"$records" requires explicit package name at eating_strict_error.pl' I
get 'BEGIN not safe after errors--compilation aborted at
eating_strict_error.pl line 10.'
If you swap the order of the two functions the correct error shows up
for the version in the attachment.
In the real version get_ip was
fun get_ip( $agent ) {
my $response = make_request( $agent, $IP_URI );
my $ip = $response->decoded_content;
return $ip;
}
and the order did not matter.
Subject: | eating_strict_error.pl |
use strict;
use Function::Parameters;
fun get_record( $agent, $target_name ) {
for my $record ( @$records ) {
}
}
fun get_ip( $agent ) {
}