- or download this
package Foo;
...
bless $self, $class;
}
- or download this
#!/tool/bin/perl -w
use strict;
...
use My::Foo 1.0;
printf("version = %s\n", $Foo::VERSION);
- or download this
My::Foo defines neither package nor VERSION--version check failed at .
+/foo_version_test.pl line 4.
BEGIN failed--compilation aborted at ./foo_version_test.pl line 4.
- or download this
/home/user/perl_modules/lib/perl5/My/FooVersion
1.0/
...
Foo.pm
Devel/
Foo.pm
- or download this
use My::FooVersion::Devel::Foo;
- or download this
use My::FooVersion::1.1::Foo;
use "My::FooVersion::1.1::Foo";
use My::FooVersion::"1.1"::Foo;
use My::FooVersion::'1.1'::Foo;
use 'My::FooVersion::1.1::Foo';