in reply to Re: Newbie Q:How do I compare items within a string?
in thread Newbie Q:How do I compare items within a string?

Thnx! You've helped heaps...Unfortunately, preserving order is important, as is matching across mixed case...I guess that's why I was having so much trouble. I knew I had to use a hash, I just wasn't sure how. And thanks for the welcome - will try not to wear it out...
  • Comment on Re^2: Newbie Q:How do I compare items within a string?

Replies are listed 'Best First'.
Re^3: Newbie Q:How do I compare items within a string?
by Limbic~Region (Chancellor) on May 07, 2006 at 13:29 UTC
    PerlGrrl,
    Well, to make it case insensitive, play around with lc.

    Cheers - L~R

Re^3: Newbie Q:How do I compare items within a string?
by ww (Archbishop) on May 08, 2006 at 15:56 UTC
    welcome, and though I've only seen it recommended once here recently, you might want to consider Tie::IxHash -- I did, where preserving order was crucial but a hash was the reasonable solution to avoid having to iterate across 2 arrays concurrently -- and it bailed me out nicely!