source: trunk/tp_subversion/randomf.pl @ 406

Last change on this file since 406 was 384, checked in by nanardon, 11 years ago

corriger la detection de 'poemes'

File size: 252 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6my @f = (grep { $_ !~ /poemes.txt$/ } glob('tpfiles/*.txt'))[0 .. $ARGV[0]-1];
7
8my %files = map { $_ => rand } @f;
9
10foreach (sort { $files{$a} <=> $files{$b} } keys %files) {
11    s:.*/::;
12    print "$_\n";
13}
Note: See TracBrowser for help on using the repository browser.