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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: strings with options - how do I do this?
by blakem (Monsignor) on Feb 27, 2003 at 11:04 UTC | |
by Anonymous Monk on Feb 27, 2003 at 13:32 UTC |
In Section
Seekers of Perl Wisdom