in reply to Re^6: Read CSV with column mappingin thread Read CSV with column mapping
/^\s+$/ requires at least one blank character. /^\s*$/ would fail empty lines too.