Perl file access problem

Hey everyone

First of all, thank you for reading this post and bothering about my problem. I'm using Material Studios 5.5.3. I tried to create a folder with a respective script (see below). By executing the script in material studios, the software is unable to create my folder, by executing the script outside of material studios with Padre 0.94, the folder creation perfectly works. The only difference between the two scripts is the excluding of "use MaterialsScript qw(:all);" with Padre, because the software doesn't know this package. I have the same problems with all file access actions (import/export ... etc) Do I have access problmes on my windows mashine? But I have administration access! Does anyone had the same problem before?

#!perl -w

use MaterialsScript qw(:all);

use strict;

use warnings;

sub dir {

    my \$directory = "folder";

    unless(mkdir(\$directory, 0666)) {

        die "Unable to create \$directory\n";

    }

}

dir();

Thanks in advance