My Calendar

sub do_nothing_useful {
    my($a, $b, $c);
                                                           
(1)



































    $a = new A;
    
    $a->does_nothing_either();
                                                           
(1)



































    $b = new B; 

    $c = "frog";
                                                           
(2)



































(3)



































    return ($a, $c);
}
1

These are calls to the constructor new in the object classes.

2

This function returns a two-element list.

3

The destructor (DESTROY) for the object $b will be called automatically for this object since there can be no other references to it outside this function.