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


in reply to Re^2: Columnwise parsing of a file
in thread Columnwise parsing of a file

In the absence of field delimiters you need to make use of the structure of your data.

In this case is the Product ID always an integer? Is the cost always a single word ( [\w\d]+ )? and is the Product type a single word?

Without some such pattern, a general solution, may not be possible.