in reply to Re: Appending values to variable.
in thread Appending values to variable.

Two small points:

  1. Your code doesn't compile. You need to escape the \ in the replacement string (s|/|\\|)
  2. There is no need to use the regex engine if you're replacing one character with another. That's what tr/// is for.
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg