Subject: | Doesn't like empty elements |
I have a QIF file which seems valid. gnucash processes it without incident.
However, when I use Data::Dumper on @lines I find there are empty elements.
'',
'D02/01/2005',
'',
'Ppayee',
'T33.54',
Of course, this essentially skips my whole QIF file:
while (my $line = shift @lines) {
This fixes it and my data is imported correctly:
@lines = grep { $_ ne '' } @lines;
System and Perl information:
jasonb@faith:~/src/projects/gcupdate$ uname -a
Linux faith 2.6.10-ac10 #1 Sat Jan 22 17:07:44 EST 2005 i686 GNU/Linux
jasonb@faith:~/src/projects/gcupdate$ perl -v
This is perl, v5.8.4 built for i386-linux-thread-multi
...
Thanks!