in reply to basic question:how to print a reversed array from STDIN
or@getnew=reverse(map { chomp; $_} <STDIN>);
Whatever you like best. I prefer the first version.chomp(@temp=<STDIN>); @getnew=reverse(@temp);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: basic question:how to print a reversed array from STDIN
by oxone (Friar) on Dec 04, 2008 at 13:13 UTC | |
|
Re^2: basic question:how to print a reversed array from STDIN
by ikegami (Patriarch) on Dec 04, 2008 at 12:37 UTC | |
by holli (Abbot) on Dec 04, 2008 at 12:53 UTC | |
by Corion (Patriarch) on Dec 04, 2008 at 12:55 UTC | |
by holli (Abbot) on Dec 04, 2008 at 13:01 UTC | |
by ikegami (Patriarch) on Dec 04, 2008 at 13:09 UTC | |
|