in reply to Re: how do I use s///e
in thread how do I use s///e

There's no point in using /e in your code. Removing the /e yields the same results.

Abigail

Replies are listed 'Best First'.
Re: Re: how do I use s///e
by ysth (Canon) on Jan 26, 2004 at 23:16 UTC
    To expand on this, whenever you have a (update: just) variable in the substitution, it's as if you said /e. In a sense, then, /e just becomes syntactic sugar that you can do away with:
    $ echo with bright knives he releaseth my soul | perl -wpe's/(\w+)/${\ +ucfirst($1)}/g' With Bright Knives He Releaseth My Soul