in reply to OT: Sql statemet (how to ignore lower-upper case)

This has nothing to do with Perl, but..

select name from table order by LCASE(name)
(assuming standard-ish SQL, it may be 'lower' and not 'lcase' - look in your documentation)

C.