in reply to Usage of regular expressions in input separator

Depending on how complex your requirements are, you may be able to use Stream::Reader to match one of multiple delimiters, and accomplish your task.

Although it does not support regular expressions, in your example case, you could use

map {"Separator $_"} 0..9
as your delimiter list.

            "Battle not with trolls, lest ye become a troll; and if you gaze into the Internet, the Internet gazes also into you."
        -Friedrich Nietzsche: A Dynamic Translation