Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Bug in substitution operator?

by setebos (Beadle)
on Jan 10, 2009 at 20:50 UTC ( [id://735428]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found