RosettaCodeData/Task/Multiple-distinct-objects/Perl/multiple-distinct-objects-1.pl
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

3 lines
107 B
Perl

(Foo->new) x $n
# here Foo->new can be any expression that returns a reference representing
# a new object