- Timestamp:
- 10/15/08 22:10:41 (3 months ago)
- Location:
- t/spec
- Files:
-
- 1 added
- 1 modified
-
S11-modules/import.t (added)
-
packages/S11-modules/Foo.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/packages/S11-modules/Foo.pm
r22481 r22625 1 module Foo; 2 sub foo is export(:DEFAULT) { 'Foo::foo' } # :DEFAULT, :ALL 3 sub bar is export(:DEFAULT :others) { 'Foo::bar' } # :DEFAULT, :ALL, :others 4 sub baz is export(:MANDATORY) { 'Foo::baz' } # (always exported) 5 sub bop is export { 'Foo::bop' } # :ALL 6 sub qux is export(:others) { 'Foo::qux' } # :ALL, :others 1 # L<S11/"Exportation"/> 7 2 3 module t::spec::packages::S11-modules::Foo; 4 sub foo is export(:DEFAULT) { 'Foo::foo' } # :DEFAULT, :ALL 5 sub bar is export(:DEFAULT, :others) { 'Foo::bar' } # :DEFAULT, :ALL, :others 6 sub baz is export(:MANDATORY) { 'Foo::baz' } # (always exported) 7 sub bop is export { 'Foo::bop' } # :ALL 8 sub qux is export(:others) { 'Foo::qux' } # :ALL, :others 9
