RosettaCodeData/Task/Multiple-distinct-objects/Perl/multiple-distinct-objects-1.pl

4 lines
107 B
Perl
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
(Foo->new) x $n
# here Foo->new can be any expression that returns a reference representing
# a new object