Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: Destroying an Object

Perl: Destroying an Object

#!/usr/local/bin/perl -w
package Person;
use strict;
sub new {
    my $self = { };
    $self->{Name} = "";
    $self->{AGE}   = 0;
    return $self;
# Create a method named DESTROY. This will be invoked when there are no more references to the object,
    my $self = shift;
    printf("$self dying at %s
", scalar localtime);

Users who found this page were searching for:

  • how to subtract seconds from time in java
  • calculate factorial perl
  • how to underline text in java swing
  • java array resize
  • python compare strings
  • windows7 counting lines in file
  • perl program to find factorial for n numbers
  • replace element java array
  • Write a PERL script to find factorial for n numbers.
  • Perl file query "-f"

No comments yet.

Leave a Comment