in reply to Re: spliting a string
in thread spliting a string
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/;
|
|---|