Jul 7, 2003, 1:01 AM
Post #2 of 2
can somebody tell me how to basic way to open a word file and read it line by line?
can i do it without using strict because if i use strict i get a error on this line of code
my odbc = new Win32::ODBC(efindX);
efindX is the database i am useing.
I know nothing about Win32::ODBC, but there are some pretty obvious syntax errors in your code. It shuld probably look more like.
And actually, the indirect syntax for calling "new" can be dangerous and isn't recommended. you should use this instead
my $odbc = new Win32::ODBC('efindX');
my $odbc = Win32::ODBC->new('efindX');
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks