in reply to How to declare globally visible subroutine like built-in ones ? Is it possible?
*::global_sub = \&global_sub;
and qualify your global subs with the empty package, on invocation:
$result = ::global_sub($args);
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to declare globally visible subroutine like built-in ones ? Is it possible?
by bdimych (Monk) on Nov 06, 2007 at 13:22 UTC |