in reply to Small Doubt regarding DB Select

After you call execute for the select you need to use that statement handle to get the NAME attribute back. See http://search.cpan.org/~timb/DBI-1.607/DBI.pm#NAME_(array-ref,_read-only).