in reply to replacing part of a string

Use the tr operator or the substr function.

Update
My mistake, obviously the tr operator is not a good choice. The substr function or the s operator as suggested below both are fine.

Replies are listed 'Best First'.
Re^2: replacing part of a string
by chromatic (Archbishop) on May 13, 2009 at 17:31 UTC

    How would you do this with tr///?

      Good point, obviously I wouldn't;)