A program that sorts input lines in reverse order. : Command Line « Language Basics « Perl
- Perl
- Language Basics
- Command Line
A program that sorts input lines in reverse order.
#!/usr/local/bin/perl
@input = <STDIN>;
@input = reverse (sort (@input));
print (@input);
Related examples in the same category