in reply to Re: Lady Aleena's first working module
in thread Lady Aleena's first working module
Now you are doing one of my pet peeves, using to much syntax which is not clarifying the code at all. This is better,
my $type = shift; return $type eq 'parts' ? $parts[ rand @parts] : $type eq 'good_vs_evil' ? $good_vs_evil[ rand @good_v +s_eval] : $type eq 'lawful_vs_chaotic' ? $lawful_vs_chaotic[ rand @lawful +_vs_chaotic] ? q{}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Lady Aleena's first working module
by Tux (Canon) on Oct 07, 2009 at 18:46 UTC |