You know, I asked myself the same question when I saw the other replies. I guess I forgot it was there! I always use File::Path out of laziness. Who wants to worry about how many levels need to be created?
I know everyone's happy to use Perl for everything, but this is overkill here. GNU's mkdir(1) takes multiple arguments. If the desired directory names are truly a numeric range, then you can use seq(1).
Use the module File::Path in that module there is a function called mkpath, within that you may give the directories you want to create.
for eg: mkpath(/root/folder/folder/folder)