in reply to Re^3: hex escape Question
in thread hex escape Question

Recommendation - It is safer to do the initial split like this:
if ($sfreq =~ /^(\d)[.](\d)[.](\d)$/) { my $MHz = $1; my $KHz = $2; my $hz = $3; # rest of code } else { die "Sorry, invalid input. Please use format '<MHz>.<KHz>.<Hz>'.\n" }