Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: strings with options - how do I do this?

by Hofmator (Curate)
on Feb 27, 2003 at 10:31 UTC ( #239052=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ($text) {
       s/\[/{/g;
       s/\]/}/g;
       s/\|/,/g;
    }
    
  2. or download this
    $text =~ tr/[|]/{,}/;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://239052]
help
Chatterbox?
NodeReaper cleans and fillets

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2018-05-20 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?