public
Description:
Homepage:
Clone URL: git://github.com/robertkrimen/path-abstract.git
path-abstract / profile-Path-Class.pl
100644 30 lines (24 sloc) 0.479 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/perl -w
 
use strict;
 
use Path::Class;
 
srand 30;
 
my $count = shift @ARGV || 1000;
 
if (0) {
my $path = dir;
while ($count--) {
$path = dir if $count % 10;
$path = int rand 2 ? $path->subdir($count) : $path->subdir($count);
}
}
elsif (1) {
my $path = dir;
while ($count--) {
$path = $path->subdir(sprintf '%x', int rand 3600);
}
}
elsif (1) {
my $path = dir;
while ($count--) {
$path = int rand 2 ? $path->subdir($count) : $path->subdir($count);
}
}