in reply to finding and deleting the value of special characters

You probably want to use s/// instead of tr, as your annoyances have multiple characters. You can easily use something like s/\\&.{3}//g to remove all instances of your blurb, with the only stipulation that you mind need to enter the numeric code for that first character instead of the character itself to have the perl engine deal with it right.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: finding and deleting the value of special characters
by blacksmith (Hermit) on Jun 20, 2001 at 23:22 UTC
    Thanks for the suggestion. I just finished reading a thread discussing the difference between tr/// and s///. I plan to give it a try. Now I am wondering how to find the numeric code of the first character. Blacksmith.
      I believe that ord() might be what you're looking for.

      stephen