Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: splitting the scalar variables in an array

by soonix (Prior)
on Nov 16, 2013 at 08:14 UTC ( #1062863=note: print w/replies, xml ) Need Help??


in reply to splitting the scalar variables in an array

I would move the split and print out of the loop.
Update: wasn't yet awake... push @TotalHosts, split ... IN the loop, and print, of course, after the loop.