On Jul 13, Mike Flannigan said:

>>   s/\|/h/g foreach @filecontents;
>>
>
>Works like a charm.  I sure appreciate your help.
>
>It's going to take me a few years to figure out (even generally)
>what all these commands are doing.  Sure is an intriguing
>language.

Then here's another operator to learn:  you can do the translation of | to
h using the tr/// operator also:

  tr/|/h/ for @filecontents;

That transliterates ALL |'s to h's, for each string in @filecontents.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to