source: perl/lib/BarnOwl/Zephyr.pm @ 53151d4

Last change on this file since 53151d4 was 53151d4, checked in by Alex Dehnert <adehnert@mit.edu>, 8 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 
1use warnings;
2use strict;
3
4=head1 NAME
5
6BarnOwl::Zephyr
7
8=cut
9
10package BarnOwl::Zephyr;
11
12use BarnOwl::Hook;
13
14our $zephyrStartup = BarnOwl::Hook->new;
15
16sub _zephyr_startup {
17    $zephyrStartup->run;
18}
19
201;
Note: See TracBrowser for help on using the repository browser.