#!/usr/bin/perl use Dog; my @pack = create_dogs(15); sub create_dogs #of course, this should possibly be a method of Dog, b +ut whatever { my $num = shift; map Dog->new, 1 .. $num; # or 0, whichever makes you happy. }
In reply to Re^2: Tracking objects.
by BUU
in thread Tracking objects.
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |