in reply to Re: strings with options - how do I do this?
in thread strings with options - how do I do this?
Works fine with the caveat that the string shouldn't contain any meta characters that glob might want to expand, like '*'.
And this:
could be written as: $text =~ tr/[|]/{,}/;for ($text) { s/\[/{/g; s/\]/}/g; s/\|/,/g; }
-- Hofmator
In Section
Seekers of Perl Wisdom