toapole has asked for the wisdom of the Perl Monks concerning the following question:
i don't know nothing about $copy (when and where it was created) but need to destroy it..#!/usr/bin/perl use strict; use Scalar::Util qw(refaddr); package Hmmm; sub new {bless {}, shift;} 1; my $hm = $Hmmm->new(); my $copy = $hm; # hard..
$copy still exists.. Is it possible to know about $copy from $addr or something?my $addr = refaddr($hm); undef $hm;
|
|---|