in reply to Re: Chord root
in thread Chord root

for (@f) { $_ = 0 unless defined }
Since the only false values are undef, '', 0, '0', you can safely write this more idiomatically as
$_ ||= 0 for @f;

Makeshifts last the longest.