print map { $$_[1] } sort { $$a[0] <=> $$b[0] } map { /(\d+)/; [$1, $_] } <FILE>;
In reply to Re: Sed to perl conversion-- flipping lines in a file
by jonadab
in thread Sed to perl conversion-- flipping lines in a file
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |