source:
trunk/tp_subversion/randomf.pl
@
406
Last change on this file since 406 was 384, checked in by nanardon, 11 years ago | |
---|---|
File size: 252 bytes |
Line | |
---|---|
1 | #!/usr/bin/perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | my @f = (grep { $_ !~ /poemes.txt$/ } glob('tpfiles/*.txt'))[0 .. $ARGV[0]-1]; |
7 | |
8 | my %files = map { $_ => rand } @f; |
9 | |
10 | foreach (sort { $files{$a} <=> $files{$b} } keys %files) { |
11 | s:.*/::; |
12 | print "$_\n"; |
13 | } |
Note: See TracBrowser
for help on using the repository browser.