Ok this is not a biggier but in the interest of writing cleaner code?
IO.popen("Generate a list of files").readlines.each{|f_nl|
f=f_nl.chomp
# ...
} Namely is there someway to chomp the whole array in one fell swoop?
Ok this is not a biggier but in the interest of writing cleaner code?
IO.popen("Generate a list of files").readlines.each{|f_nl|
f=f_nl.chomp
# ...
} Namely is there someway to chomp the whole array in one fell swoop?