Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[Corion]: Maybe that's more "boiling a frog", but my toolkit of Machiavellian practices is fairly small

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-07-16 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?