mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
add missing use line
This commit is contained in:
parent
88af462c69
commit
16d879d712
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user