Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Columnwise parsing of a file

by tmharish (Friar)
on Feb 26, 2013 at 09:56 UTC ( #1020646=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^3: Columnwise parsing of a file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-12-26 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls