in reply to Re^5: Data manipulation on a file
in thread Data manipulation on a file
For example:
use Modern::Perl qw/2015/; use List::MoreUtils qw/uniq/; my @mountpoints = qw/one two three three two four one one five six/; print join ' ', uniq sort @mountpoints;
Output: five four one six three two
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Data manipulation on a file
by sstruthe (Novice) on Oct 02, 2015 at 21:38 UTC | |
by CountZero (Bishop) on Oct 02, 2015 at 21:41 UTC |