in reply to Re: Help with Excel::Table
in thread Help with Excel::Table
I neglected to include that this is with Strawberry Perl running on a win10/64 system. Here's the little test program:
I don't know how to upload the Excel worksheet that the file needs {anything will do, since I am only trying to open it and {for the nonce} don't care about whats *in* the file}, but when I run the program I get.#!/usr/bin/perl use v5.10 ; use strict; use warnings ; use Excel::Table ; use constant WORKBOOK => "d:/desktop/testWB.xlsx" ; # test if the path works open(P, "<", WORKBOOK) or die "Can't find the workbook: $!\n" ; close P ; my $xs = getWB(WORKBOOK) ; exit ; sub getWB { my ($dir, $wb) = $_[0] =~ /(.*)\/(.*)/ ; say "Directory is $dir" ; say "Excel file is $wb" ; my $xs = Excel::Table->new(dir => $dir) ; $xs->open($wb) ; return $xs ; }
d:\Desktop>testWb.pl Directory is d:/desktop Excel file is testWB.xlsx Log4perl: Seems like no initialization happened. Forgot to call init() +?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help with Excel::Table
by Athanasius (Archbishop) on Sep 26, 2020 at 09:10 UTC | |
by BernieC (Pilgrim) on Sep 26, 2020 at 11:34 UTC | |
by Tux (Canon) on Sep 26, 2020 at 12:40 UTC |