use readdir to read the existing directories into an array. Use grep to filter out any files and bogus directories that snuck in while you weren't looking. sort the resulting array and pull off the last element using [-1]. Parse out the number using a regex. (Actually the code is shorter than the description, but you get that with Perl.)
In reply to Re: how to create folders
by GrandFather
in thread how to create folders
by Peamasii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |