Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: map vs. foreach

by hdp (Beadle)
on Apr 25, 2001 at 07:39 UTC ( [id://75368] : note . print w/replies, xml ) Need Help??


in reply to map vs. foreach

map in void? Are you trying to invoke merlyn's wrath? :) Consider also:
while (...) { local ($, = $\ = "\n"); print @fields, "-" x 80; }
This is hypothetically "less maintainable", as people may not be familiar with $, and $\; you've got to decide that for yourself.

hdp.

p.s. tilly's idea is better than mine.