in reply to Bug in substitution operator?

Dont' you mean the following?
s/\{verbatim\}/\{$hash{whatever}\}/ for @lines;

Replies are listed 'Best First'.
Re^2: Bug in substitution operator?
by polettix (Vicar) on Jan 10, 2009 at 20:57 UTC
    The actual substitution isn't important in the original post; the fact is that using braces to enclose the substitution part leads to some behaviour that's not what I expected.

    As you may see in the OP, I already found a solution/workaround to get what I wanted (i.e. using square brackets instead of braces); what I'm asking here is if this behaviour is buggy or not.

    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Io ho capito... ma tu che hai detto?