Help for this page

Select Code to Download


  1. or download this
    my @obj3s;
    while (CONDITION) {
       push @obj3s, Object3->new();
    }
    my $obj2 = Object2->new(-children=>\@obj3s); # edited ... had the drea
    +ded "=" without the ">"
    
  2. or download this
    sub children {
        my $self = shift;
        @_ ? $self->{_children} = shift :
        $self->{_children};
    }
    
  3. or download this
    perl -e 'print "How sweet does a rose smell? "; chomp $n = <STDIN>; $r
    +ose = "smells sweet to degree $n"; *other_name = *rose; print "$other
    +_name\n"'