in reply to Re^2: diamond operator multiple input
in thread diamond operator multiple input

I cancan't replicate your warning.
>perl -we"my ($dginput, $volinput) = map { chomp; lc } <>;" a b c ^Z

Not even if I remove the assignment.

>perl -we"map { chomp; lc } <>;" a b c ^Z

Tested with 5.6, 5.8 and 5.10

Replies are listed 'Best First'.
Re^4: diamond operator multiple input
by johngg (Canon) on Jan 22, 2009 at 19:41 UTC

    Neither can I now and the window I was working in is long since closed so I can't see what I did to generate it :-(

    As you say, this

    $ perl -we ' > ( $dg, $vo ) = map { map { chomp; lc } scalar <> } 1 .. 2; > print qq{$dg, $vo\n}; > print q{-} x 15, qq{\n}; > print for <>;' zzzz aaaa, bbbb --------------- CCCC DDDD EEEE $

    works without any warnings. I will update my original node.

    Cheers,

    JohnGG