text: in reply to MOPT-04 - identification, part 2
  Perl's function bindings are statically scoped, not dynamically scoped, so we can't bind the name to a new entity in a different evaluation context.
  You can, of course, do:
  sub func { return "original value.\n" }
  sub print_func { print func(), " "; }
  sub redefine_func {
  local *func = sub { return ("local value.\n") };
  print_func();
  }
  [download]
  Which is still binding an identifier to an entity by your definitions (I think :-).
  1. Keep it simple
  2. Just remember to pull out 3 in the morning
  3. A good puzzle will wake me up
  Many. I like to torture myself
  0. Socks just get in the way
  Results (284 votes). Check out past polls.