in reply to
To warn or not to warn, that is the question
What about something like this:
my $x = some_func() || 0;
[download]
This will ensure $x has a numeric 0 in it even if some_func gives us an undefined value. I wonder if this impacts performance as much as a 'defined' test...?
Comment on
Re: To warn or not to warn, that is the question
Download
Code
In Section
Seekers of Perl Wisdom