Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Interpolating variables in a string

by dpuu (Chaplain)
on Oct 13, 2004 at 22:34 UTC ( #399037=note: print w/ replies, xml ) Need Help??


in reply to Re: Interpolating variables in a string
in thread Interpolating variables in a string

Though not if it contains an unpaired '}'.

--Dave


Comment on Re^2: Interpolating variables in a string
Replies are listed 'Best First'.
Re^3: Interpolating variables in a string
by borisz (Canon) on Oct 13, 2004 at 22:49 UTC
    then do it like the first poster suggest:
    ( my $newstr = $str ) =~ s/(\$\w+)/$1/eeg;
    Boris

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://399037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-28 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls