Personally, I'd just use Passwd::Unix but since this is homework you probably don't have that luxury.
In reply to Re: Help to split by Mr. Muskrat in thread Help to split by semenych