This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use ‘an’ for $/=[] error message
authorFather Chrysostomos <sprout@cpan.org>
Sun, 9 Feb 2014 01:14:10 +0000 (17:14 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Feb 2014 19:08:25 +0000 (11:08 -0800)
commita48e42054790d7e52df73e8a2c8b120da9ea6dc4
tree9bc53152d37c696a75e61b3bdf0708cc46aad30e
parenta18bab6ebbe98d43ddd701fa7af24cad76eabe8c
Use ‘an’ for $/=[] error message

This says ‘an ARRAY’:

$ perl -Mstrict -e '@{"a"}'
Can't use string ("a") as an ARRAY ref while "strict refs" in use at -e line 1.

This says ‘a ARRAY’:

$ ./miniperl -e '$/=[]'
Setting $/ to a ARRAY reference is forbidden at -e line 1.

It ought to say ‘an’.
mg.c
pod/perldiag.pod
t/base/rs.t