in reply to Re: Getting rid of a temporary variable in AoH
in thread Getting rid of a temporary variable in AoH

If the format of the input is as fixed as in case of a passwd file, then splitting on colon makes much more sense, even if one needs to chomp in that case.