Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-10-16 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (89 votes). Check out past polls.

    Notices?