- or download this
warn $];
warn \&CORE::GLOBAL::sleep;
warn \&CORE::sleep;
&CORE::GLOBAL::sleep(3);
- or download this
5.016003 at d:/Users/lanx/pm/core_sleep.pl line 1.
CODE(0x328420) at d:/Users/lanx/pm/core_sleep.pl line 4.
CODE(0x349718) at d:/Users/lanx/pm/core_sleep.pl line 5. <-- differen
+t!
Undefined subroutine &CORE::GLOBAL::sleep called at d:/Users/lanx/pm/c
+ore_sleep.pl line 7.
- or download this
*old = *CORE::GLOBAL::sleep;
*CORE::GLOBAL::sleep = sub { warn " **** beware of morons **** "};
...
&old(); # oops
warn \&CORE::GLOBAL::sleep;
warn \&old;
- or download this
**** beware of morons **** at d:/Users/lanx/pm/core_sleep.pl line 2.
CODE(0x4c9478) at d:/Users/lanx/pm/core_sleep.pl line 7.
CODE(0x4c9478) at d:/Users/lanx/pm/core_sleep.pl line 8. <-- identical
+!
- or download this
lanx@ubuntu14-large:~$ perl
warn $];
...
CODE(0x1804cb8) at - line 2.
CODE(0x1830398) at - line 3.
Undefined subroutine &CORE::GLOBAL::sleep called at - line 4.
- or download this
lanx@ubuntu14-large:~$ perl
*old = *CORE::GLOBAL::sleep;
...
**** beware of morons **** at - line 2.
CODE(0x2089448) at - line 5.
CODE(0x2089448) at - line 6.