in reply to spliting a string

thanks guys, shame on me for not knowing this

Hotshot

Replies are listed 'Best First'.
Re: Re: spliting a string
by Rhose (Priest) on Dec 04, 2001 at 19:36 UTC
    *Smiles*

    I would not feel too badly -- there have been lots of times I have seen things posted on PM and slapped my head because it was so obvious and I missed it. Case in point -- I used to use the "if !" structure a LOT, then one day I posted a reply and someone commented that I should have used "unless" to make the code more readable.

    From that day on, my icky code has been improved (well, a little.)

    print if ! /bad line/; print unless /bad line/;