There's more than one way to do things | |
PerlMonks |
Re: My 'perldar' tells me there is a 'better' solution for this list operationby Sidhekin (Priest) |
on Nov 03, 2006 at 22:35 UTC ( [id://582188]=note: print w/replies, xml ) | Need Help?? |
If you judge whether a value is "present" by string equality (and it would seem you do), you could just use a hash:
( Also: "perldar"++ )
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|