You should be more specific about what "does not work" means. What happens? What did you expect to happen?
My guess (without running code) is that lc forces scalar context on its single argument. You want a list, so this will work better:
my ($dginput, $volinput) = map { chomp; lc } <>;Consider that because Perl is not a lazy language, it'll read everything from STDIN and throw away all but the first two elements. That could be a lot of work.
In reply to Re: diamond operator multiple input
by chromatic
in thread diamond operator multiple input
by mikejones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |