package Foo; use strict; my $Bar = "Baz"; sub new { return bless { BAR => $Bar }; } package main; my $Foo = new Foo(); print $Foo->{'BAR'};
In reply to RE: Re: Package variables
by DrManhattan
in thread Package variables
by reptile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |