Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        my($ssn, $obj) = parse_account($_);
        push @{$accounts{$ssn}}, $obj;
    }
    
  2. or download this
    while (my($ssn, $acctlist) = each %accounts) {
        foreach my $acct (@$acctlist) {
            print $ssn, $acct->email, "\n";
        }
    }
    
  3. or download this
    sub email {
        my $self = shift;
        return $self->{'email'};
    }