in reply to Re^2: Converting to uppercase and wrapping ''
in thread Converting to uppercase and wrapping ''

Why do you want to put quotes around $folder? Are you really just wanted to test if $folder and $mk are equal except for case?

If so just do the following:

next if uc $mk eq uc $folder;