WebmastTroy has asked for the wisdom of the Perl Monks concerning the following question:
Using the above code, if, for example, the 7th spot for information is the database is blank, it puts whatever's in the 8th spot as 7th (it shifts them to the left. If 2 fields are blank, you come up 2 fields short at the end, etc.). In the database, the tabs are there, but it appears that my split command groups multiple ones together.foreach $line (@file) { ($field1value, $field2value, $field3value, $field4value, $field5value, + $field6value, $field7value, $field8value, $field9value, $field10valu +e) = split(/\t+/, $line);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tab delimited code problem?
by Paladin (Vicar) on Jan 25, 2003 at 06:33 UTC | |
by Aristotle (Chancellor) on Jan 25, 2003 at 23:40 UTC | |
|
Re: Tab delimited code problem?
by Wonko the sane (Curate) on Jan 25, 2003 at 06:30 UTC | |
|
Re: Tab delimited code problem?
by atcroft (Abbot) on Jan 25, 2003 at 06:32 UTC | |
|
Re: Tab delimited code problem?
by Aristotle (Chancellor) on Jan 25, 2003 at 23:50 UTC | |
|
Re: Tab delimited code problem?
by vek (Prior) on Jan 25, 2003 at 20:13 UTC |