in reply to Split by "//"
You need to remove spaces and escape the slashes with backwhacks: ($rootdir,$userdir) = split /\/\//,$dir;
After Compline,Zaxo