Try it
- Write a program that reads a list of names from STDIN and prints them back out, sorted, on one line:
$ perl namesorter.pl Enter names: moe larry curly ^D You gave me: curly larry moe - thanks!
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #34 |
$ perl namesorter.pl Enter names: moe larry curly ^D You gave me: curly larry moe - thanks!
| Copyright © 2005 Ian Langworth |