Skip Menu |

This queue is for tickets about the Function-Parameters CPAN distribution.

Report information
The Basics
Id: 61442
Status: resolved
Priority: 0/
Queue: Function-Parameters

People
Owner: Nobody in particular
Requestors: lwsitu [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: 0.05



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 ) { }