Can anyone help me with this fairly simple piece of Perl/Tk – actually I’ve taken it from the Man page and I can’t seem to get it to work! I simply added the call to create the main window.
The script is as follows: .........code........ use strict; use Tk::BrowseEntry; my $main = Tk::MainWindow->new; my $frame = $main->frame; my $var; my $b = $frame->BrowseEntry(-label =>"Label", -variable =>\$var); $b->insert("end", "opt1"); $b->insert("end", "opt2"); $b->insert("end", "opt3"); $b->pack; .........end code........ The error message I get is as follows: Can't call method "BrowseEntry" without a package or object reference at browse.pl line 7. I can't seem to find a reference to any object in the docs. Also I was assuming that using the use statement would deal with the package side of things, unless I've completely missed the point! TIA Chris Christopher Moss Murray McIntosh O'Brien Wellesley House 204 London Road Waterlooville PO7 7AN (023) 9223 1006 [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003 ------------------------------------------------------------------------------------------------------------------- Disclaimer Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and delete it, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Murray McIntosh O'Brien does not accept liability. Likewise whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Murray McIntosh O'Brien does not accept liability for any losses caused as a result of viruses. Statements in this message that do not relate to the business of Murray McIntosh O'Brien are neither given nor endorsed by it or the Directors of Murray McIntosh O'Brien. A list of the Directors of Murray McIntosh O'Brien is available for inspection at our offices. ---------------------------------------------------------------------------------------------------------------------- _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs