in reply to Re: array input "@array = lc(<>)"
in thread array input "@array = lc(<>)"

And if the OPer wants to get rid of the newlines at the ends of the strings:

>perl -wMstrict -le "my @array = map { chomp; lc } <>; use Data::Dumper; print Dumper \@array; " FOO BAR ^Z $VAR1 = [ 'foo', 'bar' ];

Replies are listed 'Best First'.
Re^3: array input "@array = lc(<>)"
by Anonymous Monk on May 12, 2010 at 20:38 UTC
    yeah I just did:

    chomp(my @input = map {lc} <>);