in reply to cloning

Hm... This doesn't sound right. You are creating copies of the name of the class, but not clones of the object itself. Maybe something like this:
while(my $clone = (ref $self)->new) { push @{$army}, $clone; }
Now you have a real army, and not only a list of soldiers' names... :-)

--ZZamboni

Replies are listed 'Best First'.
RE: RE: cloning
by splinky (Hermit) on Jul 04, 2000 at 18:32 UTC
    Or, if you're an illusionist, you could cast Mirror Image.

    while(my $clone = \$self) { push @{$army}, $clone; }

    Much less resource-intensive. Of course, it's all a moot point since you spend all your time creating an army and never attack or defend anything.

    *Woof*