Define 'better'. You may like:
($_ = lc <>), chomp for my ($dginput, $volinput); [download]
In reply to Re: diamond operator multiple input by GrandFather in thread diamond operator multiple input by mikejones