Skip to content

Instantly share code, notes, and snippets.

@mfollett
Created August 30, 2010 03:08
Show Gist options
  • Save mfollett/556960 to your computer and use it in GitHub Desktop.
Save mfollett/556960 to your computer and use it in GitHub Desktop.
functional programming blog, week 2 example 1
{
my $value = 11;
sub get_value { $value };
}
say get_value->(); # Succeeds in printing "11\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment