in reply to Create multiple files from a single file
So, what have you tried? Where are you having trouble?
Please read perlintro and perlretut for basic Perl knowledge.