# global $name; for $name ('red', 'blue') { *$name = sub { "@_" }; }; $name = ''; print red(), "\n"; print blue(), "\n"; __END__