release-1.10
Last change
on this file was
53151d4,
checked in by Alex Dehnert <adehnert@mit.edu>, 11 years ago
|
Use "our" instead of "my" for zephyrStartup hook
All our other hooks seem to be defined using "our", and I don't seem to be able
to use the zephyrStartup hook without this change.
http://perldoc.perl.org/functions/our.html does claim the scoping should be the
same (though it also seems to suggest that only "our" gives a package variable
instead of something only in the current lexical scope...).
|
-
Property mode set to
100644
|
File size:
204 bytes
|
Line | |
---|
1 | use warnings; |
---|
2 | use strict; |
---|
3 | |
---|
4 | =head1 NAME |
---|
5 | |
---|
6 | BarnOwl::Zephyr |
---|
7 | |
---|
8 | =cut |
---|
9 | |
---|
10 | package BarnOwl::Zephyr; |
---|
11 | |
---|
12 | use BarnOwl::Hook; |
---|
13 | |
---|
14 | our $zephyrStartup = BarnOwl::Hook->new; |
---|
15 | |
---|
16 | sub _zephyr_startup { |
---|
17 | $zephyrStartup->run; |
---|
18 | } |
---|
19 | |
---|
20 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.