- or download this
sub mysub {
tie my $tied, 'MyClass';
...
} # the fetched value.
my $not_tied = mysub();
- or download this
tie my $tied, 'MyClass';
my $not_tied = $tied; # Calls FETCH and assigns
# the fetched value.
- or download this
sub mysub {
tie my $tied, 'MyClass';
...
print($$ref_to_tied1, "\n"); # Calls $tied's FETCH.
print($$ref_to_tied2, "\n"); # Calls $tied's FETCH.