I am using ActiveState 5.8.8 Build819, which is latest available on ActiveState.

I have created a Graphics interface using Tk and try to use excel sheet in the program. I am getting the filename and row and column to process using the interface...

i used $Sheet->Cells($row,$coltag)->{'Value'} to access a cell but it is showing error. It is working fine if Tk is not used. Error displayed is-

Tk::Error: Can't use an undefined value as a HASH reference at Generat +e_traceabi lity_matrix1.pl line 66. Tk callback for .button1 Tk::__ANON__ at C:/Perl/lib/Tk.pm line 252 Tk::Button::butUp at C:/Perl/lib/Tk/Button.pm line 111 <ButtonRelease-1> (command bound to event)

If I change $coltag variable with actual value then it works fine.

I feel that latest version do not allow both arguments in Cells() to be variable.

If this is the reason, Please suggest some alternative


In reply to Excel usage with Perl by miloanuragse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.