in reply to handling different new line characters
You might even consider using IO::File which IMHO has an easy peasy and pretty interface, and automatically closes in a kernel resource friendly manner!
I would also add the comment that your two subs duplicate each other - why not just have one? Or if you really like having the two names then...use IO::File; my $fh = IO::File->new($filename, "r") or die "unable to open $filename: $!"; for my $line ( $fh->getlines() ) { chomp $line; print "[$line]\n"; }
and move all the code into _loadIndex();sub load_primers { return _loadIndex( @_); } sub load_parents { return _loadIndex( @_); }
$0.02
|
|---|