FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:

Having some problems with this one (Tk::TabFrame). Heck, I can't even get it to work lol. I grab the source from CPAN, load it up into the proper directory, and run a test app to see how it goes (note: on CPAN, the source is on only on line; I edited it to actually show what it should look like). I keep getting this error though, and I can't seem to figure out why?

syntax error at C:/Perl/site/lib/Tk/TabFrame.pm line 20, near ");"
BEGIN not safe after errors--compilation aborted at C:/Perl/site/lib/Tk/TabFrame.pm line 111. Compilation failed in require at test.pl line 3. BEGIN failed--compilation aborted at test.pl line 3.

Any thoughts?

PS: In case anyone was wondering, the test app was just one that was provided in CPAN.

Replies are listed 'Best First'.
Re: Tk::TabFrame
by Roger (Parson) on Feb 14, 2004 at 07:56 UTC
    Can you show us the source of your test APP? You didn't just cut and paste that little code in the synopsis and expected it to work, did you? There is a tabframe example called tabframe.pl under the example directory of the Tk::TabFrame package. You should have a look at that example.

      LoL, no -- I'm not that bad ;) The test app I used was the one you pointed out: tabframe.pl.
        That's odd, I ran the script you provided, it didn't have any problems. Now that could be a problem with your Tk::TabFrame installation it seems, or even Tk installation. How did you install the module? Did you download and unpack the source, and then perl Makefile.PL, make install, make test to install the module?