- or download this
sub ModName::TIESCALAR {
my $class = shift;
...
print(tied($var) ? 'tied' : 'not tied', "\n"); # not tied
test($var);
print(tied($var) ? 'tied' : 'not tied', "\n"); # tied
- or download this
sub ModName::TIESCALAR {
my $class = shift;
...
my $ref = test();
print(tied($$ref) ? 'tied' : 'not tied', "\n"); # tied
- or download this
sub ModName::TIESCALAR {
my $class = shift;
...
my $dst = $src;
print(tied($dst) ? 'tied' : 'not tied', "\n"); # not tied