in reply to If-else problem
if ($attributes[0] =~m/^DI/i){ [download]
i Do case-insensitive pattern matching. ^ Match the beginning of the line [download]