|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: New student, can we write this program in perl...by MidLifeXis (Prior) |
| on Oct 19, 2012 at 16:49 UTC ( #999981=note: print w/ replies, xml ) | Need Help?? |
|
I would use grep and the % operator. Could also do it with the ternary operator and the % operator (although that is approaching too cute to maintain). Update: based on other provided information in this thread, you may also want to see print, join, say, and chomp. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||