... my @students; open (DNAFILE, '<', $DNAfilename) or die "Perl says $!"; while () { chomp; push @students, Student->new(split /:/); } ...