Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

"cleaning out" object data

by Forsaken (Friar)
on May 20, 2005 at 07:32 UTC ( #458865=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $self = shift;
    foreach my $key (keys(%{$self}))
      { delete $self->{$key}; }
    
  2. or download this
    package Celebrity;
    use strict;
    ...
        $self->{'Hours_on_the_job') = 0;
        }
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://458865]
Approved by pelagic
Front-paged by jbrugger
help
Chatterbox?
[ambrus]: But that's a totally different issue.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2018-07-19 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (404 votes). Check out past polls.

    Notices?