- or download this
my @new_song = map { $_ = $_ =~ /^[a-g]$/ ? $notes{$_} : 'not a note';
+ $_ } @song_notes;
- or download this
my @new_song = map { /^[a-g]$/ ? $notes{$_} : 'not a note' } @song_not
+es;
- or download this
my @new_song = map { $_ = $$SoM{$_} ? $_.' '.$$SoM{$_} : 'not a note';
+ $_ } @$notes;
- or download this
my @new_song = map { $_ = $SoM->{$_} ? $_ . ' ' . $SoM->{$_} : 'not a
+note' } @$notes;