Help for this page

Select Code to Download


  1. or download this
    foo(sub {package other; hello()});  # Always calls other::hello
    
  2. or download this
    sub foo {package other; $_[0]->()}
    foo(sub {no strict 'refs'; &{(caller)[0] . "::hello"}()}); # Always ca
    +ll hello in callers namespace.