Hi all,
I'll start off by say thanks to Ben, I got the last problem fixed. Now the next:
So I inhereted a script k.pl that runs on win32 using Tk as a GUI. I've been trying to automate several tasks in the app as they are very tedious and require huge amounts of user interaction. It's worth noting k.pl references several .pms. My problem now is that I'm printing several variable so I know what I need to pass to the various .pms and I got the following:
K::DB::Item=HASH(0x5897d64)
This was a valus that I got from printing the var $obj.
$obj is passed from a selection menu where the user is asked to select an item. K::DB:Item is think references a cache to the local MySQL database that the apps uses. I have a folder called K::DB and an item.pm in Perl/Site/Lib.
I guess what I'd like to know if now do I print the value behind the HASH, is there one. I've read that I need to put it into an array to print it? Is that right how do I do that?
Sorry for the dumb questions, I'm still learning.
-Mark
20030818 Edit by jeffa: Changed title from 'Automating help '
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.