This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #81016] Document ord("")
authorZsbán Ambrus <ambrus@math.bme.hu>
Mon, 27 Dec 2010 02:10:57 +0000 (18:10 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 27 Dec 2010 02:10:57 +0000 (18:10 -0800)
commit6fae7aa4cab68dd6bb59af7f22c85e77eb8a1b0c
tree7ef71adf5eec929b91a18bbc89f8a4fb9084248d
parent23e2fda90bc3d33c854bd36de712a45aca7a7711
[perl #81016] Document ord("")

The following patch clarifies what ord("") does in pod/perlfunc.pod.

From the current documentation, it's not documented what it does, and one
could guess several different things: returns zero, returns undef, returns
zero with a warning, returns undef with a warning, dies.  (There's precedent
for dying: some BASIC implementations give an error if you ask for ASC("")
-- here ASC is their equivalent of our ord function.)
pod/perlfunc.pod