Take a look at the documentation of split, all you would need to do to support a different character is change that line to something like this: my @line = split /\|/; (note the backslash is required because normally the pipe character is a special character in regular expressions, see perlre). An alternative way to write that is /\Q|/, the \Q causes the characters following it to lose their special meaning (documented in quotemeta).
With XML things start getting more involved, for starters you'll need an XML module such as XML::Simple or XML::Twig to parse the XML, and then you'll need to walk through the data structures. If you're a beginner then perldsc might be a good place to start, as well as all the other tutorials that are a part of the Perl documentation - perlintro.
In reply to Re: How to substitute a word with an other?
by Anonymous Monk
in thread How to substitute a word with an other?
by fx3000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |