Michael G Schwern > your > your

Download:
your-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.00   Source  

NAME ^

your - Perl pragma to declare use of other package's variables

SYNOPSIS ^

    use your qw($Foo::bar @Moo::you %This::that);

DESCRIPTION ^

You should use variables from other packages with care, but as long as you're going to, it doesn't hurt to predeclare it.

Currently, if you use another package's variables and only use it once, Perl will throw a "variable used only once" warning. vars.pm won't allow you to declare other package's variables, and there are various hack to get around that. This package lets you declare "Yes, I am going to use someone else's variables!"

    use Foo;
    use your qw($Foo::magic);
    print $Foo::magic;

AUTHOR ^

Michael G Schwern <schwern@pobox.com>

COPYRIGHT ^

Copyright 2001, 2007 by Michael G Schwern <schwern@pobox.com>.

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

See http://dev.perl.org/licenses/

SEE ALSO ^

vars, "our" in perlfunc, "my" in perlfunc, strict

syntax highlighting: