On Fri, Sep 16, 2011 at 11:32 AM, Brandon McCaig <bamcc...@gmail.com> 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/> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/