New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inaccuracy in perldiag #882
Comments
From mcafee@waits.facilities.med.umich.eduThe perldiag man page includes the following paragraph: Can't use an undefined value as %s reference In fact, it appears that this is only a fatal error when strict refs is in Perl Info
|
From @tamiasOn Sun, Nov 21, 1999 at 04:52:21AM -0500, Sean McAfee wrote:
~> perl Ronald |
From [Unknown Contact. See original ticket]Ronald J Kimball <rjk@linguist.dartmouth.edu> wrote:
Guess I should have included a code sample. Sorry about the oversight. bash-2.03$ perl -le '$x = undef; print @$x' bash-2.03$ perl -le 'use strict; my $x = undef; print @$x' Here's the essential part of the code which originally brought the behavior use strict; %id = ( 1 => 'a', 2 => 'b', 3 => 'c'); @result = map +($id{$_}, @{ $dup{$_} }), 1, 2, 3; I got the above error until I preceded the last line with "no strict 'refs'". -- |
Migrated from rt.perl.org#1814 (status was 'resolved')
Searchable as RT1814$
The text was updated successfully, but these errors were encountered: