Wagner wrote:
> 
> Hi,

Hello,

> Though this thread is now almost a week old, I thought I'd offer one more
> suggestion.  How about using this
> 
>      %people = map { chomp; split } <INPUT>;
> 
> in place of
> 
>      %people =  <INPUT>;
> 
> To my eyes, it is cleaner than adding an explicit loop.


The chomp is redundant because the split will remove all whitespace and
"\r" and "\n" are whitespace characters.

     %people = map split, <INPUT>;



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to