On Fri, Sep 16, 2011 at 11:32 AM, Brandon McCaig <[email protected]> wrote:
>    my @column_headers = map { $_ = trim($_); $_; }
>            split /\|/, $header_line;

Sorry, that should be:

  my @column_headers = map trim($_), split /\|/, $header_line;

I'm still relatively new to using BLOCKs within statements like map
and grep and can never remember what is significant when the block
exits. :) In my original post you can see the result of my uncertainty
(especially when the custom sub that I'm calling has an error in it,
not the map call). Once I fixed my 'trim' sub I forgot to revert map.
Using an EXPR with map is even more confusing to me, but it seems to
work here so I'll leave it at that. ;D


-- 
Brandon McCaig <http://www.bamccaig.com/> <[email protected]>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <[email protected]>

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to