Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Why is there only one column in the output file?

by toolic (Chancellor)
on Apr 05, 2012 at 16:55 UTC ( #963714=note: print w/ replies, xml ) Need Help??


in reply to Why is there only one column in the output file?

One likely reason for the warning message is that line 2148788 of your input file has fewer than 10 tab-separated columns. $fields[9] is probably undefined.

You could open your input file in an editor, go to line 2148788, and check if there are really 10 columns. Or, something in the Basic debugging checklist could help:

warn scalar(@fields), " $.\n";

Updated with code example.


Comment on Re: Why is there only one column in the output file?
Select or Download Code
Re^2: Why is there only one column in the output file?
by perllearner007 (Acolyte) on Apr 05, 2012 at 20:52 UTC
    Thank you so much it is sorted!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2014-10-21 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (106 votes), past polls