in reply to Re: I am now slice-aware
in thread I am now slice-aware

Hmmm, probably because I didn't think about doing it that way. I just assumed that I had to define the 9 elements (yes, in the /etc/shadow file, there are always 9 elements) before I could join them. Of course,

$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... :)