- or download this
my %hash;
tie( %hash, "Tie::Hash::Stack" );
print defined( %hash ) ? "ok" : "not ok";
- or download this
my %hash;
tie( %hash, "Tie::Hash::Stack" );
print ( %hash ) ? "ok" : "not ok";
- or download this
my %hash;
my $obj = tie( %hash, "Tie::Hash::Stack" );
print defined( $obj ) ? "ok" : "not ok";
# or simply $obj ? "ok" : "not ok";