summaryrefslogtreecommitdiffhomepage
path: root/perl.html.markdown
diff options
context:
space:
mode:
authorDan Book <grinnz@gmail.com>2015-12-13 19:51:57 -0500
committerDan Book <grinnz@gmail.com>2015-12-13 19:51:57 -0500
commit16d879d712878e2d1aa262dc1218b6543aec99c9 (patch)
tree187bd1b783618ce1b9cc76427ee7b8d1fd28f17d /perl.html.markdown
parent88af462c699b9f48310a9624bb6bbe94b7101af1 (diff)
add missing use line
Diffstat (limited to 'perl.html.markdown')
-rw-r--r--perl.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.html.markdown b/perl.html.markdown
index d919e00e..61e8cd0e 100644
--- a/perl.html.markdown
+++ b/perl.html.markdown
@@ -262,6 +262,7 @@ sub increment {
# Methods can be called on a class or object instance with the arrow operator.
+use MyCounter;
my $counter = MyCounter->new;
print $counter->count, "\n"; # 0
$counter->increment;