in reply to Re: I am now slice-aware
in thread I am now slice-aware
$newentry = join(':',(split/:/)[0..8]);
is much cooler. Thanks for the input.
Of course, davorg is right, I forgot that split has a third field that I could have done the same thing. Oh well.
Not feeling as enlightened, mostly feeling like a knucklehead now. :))
Thus I am birdbrane
update: Actually, I have just included the relevant lines of code, there is an "if" statement between the "split" and "join". Otherwise, I would be splitting and rejoining, while doing nothing in between. Doing something for no reason, hmmm, maybe that should be my philosophy for life... :)
|
|---|