view prog/05.pl @ 3:d3e201c48ff8 draft default tip

bug fix.
author pyon
date Wed, 29 Sep 2021 22:04:51 +0900
parents 520044113ef0
children
line wrap: on
line source

# ファイル名をランダムにする

my @z = split //, "abcdefghijklmnopqrstuvwxyz0123456789";
for (glob "*") {
	my $fn;
	$fn .= $z[int(rand scalar @z)] for (1..8);
	$fn .= $_;
	$fn .= $z[int(rand scalar @z)] for (1..4);
	rename $_, $fn;
}