Question 1by partha7
|on Aug 30, 2012 at 10:52 UTC||Need Help??|
partha7 has asked for the
wisdom of the Perl Monks concerning the following question:
You have read a text file containing whitespace separated columns of numbers. Each line may contain leading and trailing whitespace. You must iterate through the file and, for each line, capture the numbers in an array. The elements of the array must not contain leading or trailing space and there may be no empty elements.
Based on the scenario above, which split command might you use in your loop to meet the specification?