> but this does not .... > my @record = map ( $_=~ s/^\s+|\s+$//g,(split /\|/,$_) );
Ok i get it. I just need to have it based on a block. Not sure why
both will not work though.
my @record = map {$_=~s/^\s+|\s+$//g}(split/\|/,$_);
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
