in reply to Re: Aaah, spring (A Very Special Perlmonks Contest)
in thread Aaah, spring (A Very Special Perlmonks Contest)
If we're doing straight translations...
map { pox $_ } $montagues, $capulets;
or more elaborately
require House; map { pox $_ } map { House->new($_) } qw(Montague Capulet);
/me realizes he will now be whacked with the void context stick...
pox $_ foreach map { House->new ($_) } qw (Montague Capulet);
Update: to handle the multiple-editions problem pointed out by andye below, add
to the above. :-)BEGIN{ *plague = \&pox;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Aaah, spring (A Very Special Perlmonks Contest)
by andye (Curate) on Apr 18, 2002 at 11:23 UTC | |
by Toad (Initiate) on Apr 22, 2002 at 19:53 UTC |