Guest User

Untitled

a guest
Feb 5th, 2016
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.3$ perl -pae'@a=sort$a-$b,grep/^\d/,@F;$_="$a[0], $a[-1]"' <<< '1 2 3 4 "5"'
  2. 0, 4
  3.  
  4. bash-4.3$ perl --version
  5.  
  6. This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi
  7. (with 40 registered patches, see perl -V for more detail)
  8.  
  9. Copyright 1987-2015, Larry Wall
  10.  
  11. Perl may be copied only under the terms of either the Artistic License or the
  12. GNU General Public License, which may be found in the Perl 5 source kit.
  13.  
  14. Complete documentation for Perl, including FAQ lists, should be found on
  15. this system using "man perl" or "perldoc perl". If you have access to the
  16. Internet, point your browser at http://www.perl.org/, the Perl Home Page.
RAW Paste Data