- or download this
tie our %conf, 'My::Hash';
# $dir is a tied Tie::Scalar
...
$dir = $conf{'dir'};
print $dir, $/;
# now prints /somewhere/else
- or download this
package My::Hash;
use base 'Tie::Hash';
...
}
}
1;
- or download this
tie our %conf, 'My::Hash';
our $dir = $conf{'dir'};
...
#
# why is $dir untied now yet I can still call tied methods
# on it?