http://www.perlmonks.org?node_id=228801


in reply to Re: Non-destructive array processing
in thread Non-destructive array processing

Best thing is you don't get "Use of uninitialized value in join or string at ..." if the array size isn't an exact multiple of the chunk size.

I *want* those warnings. If the array length is not an exact multiple of the chunk size, something is wrong, and I would like to be informed. In production code, I'd let it croak if @array % 2 even before looping.

Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).