Help for this page

Select Code to Download


  1. or download this
    *foo = *bar;
    *foo = Symbol::gensym
    *foo = \*bar;
    local *foo;
    
  2. or download this
    %pkg:: = (foo => *bar, %pkg::);
    
  3. or download this
    package pkg;
    $save_old_foo = \*foo;
    ...
    ...code using replaced glob goes here...
    delete $pkg::{foo};
    *pkg::foo = $save_old_foo;