develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [perl #113974] package NAMESPACE manpage comments

Thread Previous | Thread Next
Eric Brine
July 5, 2012 23:59
Re: [perl #113974] package NAMESPACE manpage comments
Message ID:
On Fri, Jul 6, 2012 at 1:48 AM, Linda W <> wrote:

> **
> ` Ricardo Signes via RT wrote:
> When you create an alias in your package to a variable in another package, it's
> marked "imported" so that you can refer to it easily.
>  ----
>     No probe, but what alias is created with "use vars qw(aa bb));"??

I think you mean C<< use vars qw( $aa $bb ); >>

It aliases $aa in the current package to an anonymous scalar created
through autovivification in &vars::import.

Same for $bb.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About