Skip to content

Instantly share code, notes, and snippets.

@andrewsolomon
Created May 21, 2017 16:54
Show Gist options
  • Save andrewsolomon/cb7598654fe73510972db1f93464098d to your computer and use it in GitHub Desktop.
Save andrewsolomon/cb7598654fe73510972db1f93464098d to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use feature ('say');
my $i = 0;
sub call_me {
$i++;
return $i;
}
say "You have called me ".call_me()." times.";
say "You have called me ".call_me()." times.";
say "You have called me ".call_me()." times.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment