catfish1116 has asked for the wisdom of the Perl Monks concerning the following question:
say "Please enter 3 string variables, :" . "(Please crtl-D after ent +ering strings)\n "; @lines = <STDIN>; say 'Here ' . @lines; chomp(@lines); @backwards = reverse(@lines); say "Here are the values in reverse order:" . @backwards;
And here is the output:
Please enter 3 string variables, :(Please crtl-D after entering string +s) aaa bbb ccc Here 3 Here are the values in reverse order:3
Discipulus added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 3 member list ouput
by toolic (Bishop) on Sep 25, 2018 at 14:44 UTC | |
|
Re: 3 member list ouput
by AnomalousMonk (Archbishop) on Sep 25, 2018 at 18:52 UTC |