The two shifts are rather OS dependent and may cause a little grief if the code is run in a root directory. The code isn't very tolerant of foibles like unfortunately named files or directories - especially if they sort higher than the directories of interest.
Your while loop could be turned into a for loop:
my $start = ($highest / 1000) + 1; mkdir "object${_}000" for $start .. $start + 9;
In reply to Re^2: how to create folders
by GrandFather
in thread how to create folders
by Peamasii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |