in reply to Replacing substrings within hash values
Are I and II Roman numerals? Are they supposed to be in that order (I, II, III, IV etc)? Perl doesn't speak Latin, so it, for example, will sort IX before VI.foreach my $key (sort keys%sequences)
Also, consider:
That prints abc. Just reread the doc of substr.my $str = "abcde"; print substr( $str, 0, 3 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replacing substrings within hash values
by K_Edw (Beadle) on Mar 24, 2016 at 13:50 UTC |