On Thu, 30 Sep 2004, Juerd wrote:
operator in Perl5 too: do you know actual code in which $_ was really used
there?
s/\Q$_/$foo{$_}/g for keys %foo;
D'Oh!
Michele
--
I have never seen it work, either, since I have never used Word. The
stories users of it tell me are sufficient for keeping me gl
Michele Dondi skribis 2004-09-30 10:30 (+0200):
> PS: this is something that I'd like in the substitution part of a s///e
> operator in Perl5 too: do you know actual code in which $_ was really used
> there?
s/\Q$_/$foo{$_}/g for keys %foo;
Juerd
I've read S5, and hopefully I've understood the new $-mechanism,
that BTW seems very good to me. Only I have a suggestion that I hope not
to be too awkward.
Why isn't matched text aliesed to $_ (topicalized) too? After all taking
for example, and simplicity, a substitution (but the same would h