in reply to New student, can we write this program in perl...
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: New student, can we write this program in perl...
by rahulraina7 (Initiate) on Oct 19, 2012 at 16:52 UTC | |
by MidLifeXis (Monsignor) on Oct 19, 2012 at 16:58 UTC | |
by rahulraina7 (Initiate) on Oct 19, 2012 at 17:27 UTC | |
by davido (Cardinal) on Oct 19, 2012 at 18:49 UTC | |
by MidLifeXis (Monsignor) on Oct 19, 2012 at 17:35 UTC | |
by ww (Archbishop) on Oct 21, 2012 at 19:27 UTC |