Peter Makholm > Sub-Private-0.01 > Sub::Private

Download:
Sub-Private-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Sub::Private - Private subroutines and methods

VERSION ^

Version 0.01

SYNOPSIS ^

    package Foo;
    use Sub::Private;

    sub foo :Private {
        return 42;
    }

    sub bar {
        return foo() + 1;
    }

DESCRIPTION ^

This module provide a :Private attribute for subroutines. By using the attribut you get truly private methods.

AUTHOR ^

Peter Makholm, <peter at makholm.net>

BUGS ^

Please report any bugs or feature requests to bug-sub-private at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sub-Private. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO ^

namespace::clean

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Sub::Private

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2009 Peter Makholm, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: