true_atlantis has asked for the wisdom of the Perl Monks concerning the following question:
my $aa=x(); foreach(@$aa){ $_.p(); } sub x { my @ret; my $a=mat::Network->new({name=>'test'}); my $b=mat::Network->new({name=>'test2'}); push(@ret,$a); push(@ret,$b); return(\@ret); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Howto return a reference of an array of custom class?
by Fletch (Bishop) on Sep 05, 2007 at 17:04 UTC | |
|
Re: Howto return a reference of an array of custom class?
by jhourcle (Prior) on Sep 05, 2007 at 17:05 UTC | |
|
Re: Howto return a reference of an array of custom class?
by Corion (Patriarch) on Sep 05, 2007 at 17:04 UTC | |
|
Re: Howto return a reference of an array of custom class?
by andyford (Curate) on Sep 05, 2007 at 17:08 UTC | |
by true_atlantis (Acolyte) on Sep 05, 2007 at 17:40 UTC |