in reply to diamond operator multiple input
You need two scalars in a list on the RHS:
chomp( my( $dginput, $volinput ) = ( lc(<>), lc(<>) ) ); [download]