in reply to
Can perl do...?
($foo = "one two three") =~ s/two/2/; This does what you want I think - although why you woud do this, unless the s// was generated on the fly
Comment on
RE: Can perl do...?
In Section
Seekers of Perl Wisdom