Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by toolic (Bishop)
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.

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-12-06 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.