diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-08-26 10:12:01 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-08-26 18:21:46 -0700 |
commit | 94ec06bc74ba3a61d5daddf3adeaa53459960136 (patch) | |
tree | 9e06d2a9f4684d206c3b40303e55934550c52cee /gv.c | |
parent | 3e6568b4d097eff42dadf96c5f05b8b02fd9dc29 (diff) | |
download | perl-94ec06bc74ba3a61d5daddf3adeaa53459960136.tar.gz |
&CORE::rand()
This commit allows &CORE::rand to be called through references and
via ampersand syntax. pp_rand is modified to take into account the
nulls pushed on to the stack in pp_coreargs, which happens because
pp_coreargs has no other way to tell rand how many arguments it’s
actually getting. See commit 0163043a for details.
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1357,7 +1357,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, case KEY_keys: case KEY_lstat: case KEY_pop: - case KEY_push: case KEY_rand: case KEY_read: + case KEY_push: case KEY_read: case KEY_recv: case KEY_reset: case KEY_select: case KEY_send: case KEY_setpgrp: case KEY_shift: case KEY_sleep: |