note
Hofmator
Works fine with the caveat that the string shouldn't contain any meta characters that glob might want to expand, like '*'.
And this:
<blockquote><code>for ($text) {
s/\[/{/g;
s/\]/}/g;
s/\|/,/g;
}</code></blockquote>
could be written as:
<code>$text =~ tr/[|]/{,}/;
</code>
<P>-- Hofmator</P>
239045
239048