in reply to How do i split on \

You are trying to split based on the regex 'escape' character, so you need to escape it. :-)

@stuff = split /\\/, $filename;