Perl: the Markov chain saw | |
PerlMonks |
Re: how can i split a string to an array and convert it into regular expressionby plobsing (Friar) |
on Dec 08, 2007 at 19:19 UTC ( [id://655868]=note: print w/replies, xml ) | Need Help?? |
If I understand correctly, every line on STDIN is a possible match in a regex you are building. Then one solution is this:
That of course assumes that your input isn't doing anything evil (like having a '/' in it).
In Section
Seekers of Perl Wisdom
|
|