# # Copyright (C) 2011 Loic Dachary # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # use Scalar::Util qw(looks_like_number); while() { eval $_ if(s/(cpts|vers)\[(\d+)\]\s+=/\$$1\[$2\]=/); if(/\n"; @versions = sort { if (looks_like_number(substr($a, 0, 1)) == 0) { return 1; } elsif (looks_like_number(substr($b, 0, 1)) == 0) { return -1; } else { return lc($b) cmp lc($a); } } @{$vers[$libreoffice]}; print <
(en choisir un)
    EOF print "
  • Aucun
  • \n"; for($count = 0; $count < @versions; $count++) { print "
  • $versions[$count]
  • \n"; } print <
EOF