Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Welcome to the Monastery
 
PerlMonks  

Re^2: filling in the zeros...please help

by david_lyon (Sexton)
on May 15, 2012 at 22:21 UTC ( #970718=note: print w/ replies, xml ) Need Help??


in reply to Re: filling in the zeros...please help
in thread filling in the zeros...please help

Thanks jaredor very much it helped me a lot.


Do you know or anyone else know how to output the results in the same format at the input file ie tab delimited?

Thanks so much again
Dave


Comment on Re^2: filling in the zeros...please help
Re^3: filling in the zeros...please help
by jaredor (Hermit) on May 16, 2012 at 06:12 UTC

    Dave,

    You have a hash of arrays; each array is the same length; each array represents a column; the hash key for an array is the number of the column (starting at zero) that it represents. Because of this nice regularity, you can use a for loop like above and print out each row (starting from 0) with a simple print statement. (Actually, it would be even simpler to have an array of arrays, but not that much simpler for it to be worthwhile for me to go back and edit code from my mobile device.)

    And since I'm not using a "real" keyboard at the moment, I'm not going to write out any lines of code. However, I probably shouldn't: You need to have the perl skills to do this relatively simple task. If you can't do this, then you probably don't understand what the above code is doing. You need to understand that first.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2013-05-25 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (516 votes), past polls