go ahead... be a heretic | |
PerlMonks |
Re: Scratch DBby mje (Curate) |
on Sep 30, 2011 at 08:18 UTC ( [id://928721]=note: print w/replies, xml ) | Need Help?? |
Nice one and thanks. I'm sure I'll find this useful.
BTW, on line 21 I had to add an argument to Term::Realine's constructor to make it work here - I just passed $0. According to http://search.cpan.org/~flora/perl-5.14.2/lib/Term/ReadLine.pm the constructor takes a string. You also need a newish Text::CSV or you won't have getline_all (I had 1.17 and that did not have it). Lastly, I notice the table name is optional and if I have a csv file called xxx.csv only containing something like
you seem to have to name the table or you get:
In Section
Cool Uses for Perl
|
|