in reply to How do i split on \

You should escape '\' symbol with '\':

@STMT = split (/\\/,$filename);

--dda