jowe has asked for the wisdom of the Perl Monks concerning the following question:
Hi PerlMonks,
running this little script in 'non-pp'-mode works fine. 'pp'-mode does'nt like it. I am sure, some modules have to be included - but I can't figure out which ones.
Would somebody be so kind to point me in the right direction. Thanks in advance!
Linux Mint 14 using Perl v5.14.2
running this little script in 'non-pp'-mode works fine. 'pp'-mode does'nt like it. I am sure, some modules have to be included - but I can't figure out which ones.
Would somebody be so kind to point me in the right direction. Thanks in advance!
Linux Mint 14 using Perl v5.14.2
=========== sample_getSaveFile.pm ==================================== +========= #!/usr/bin/perl use Tk; $mw = MainWindow->new(-title => 'sample_getSaveFile'); my $DOC_filetypes = [['Text', '.txt'], ['Any File', '.*']]; my $i = $mw->getSaveFile(-defaultextension => '.myown', -filetypes => $DOC_filetypes, -initialdir => '.', -initialfile => 'xyz', -title => 'getSaveFile'); if (defined $i) { print 'Successful getSaveFile'; } else { print 'Error on getSaveFile'; } MainLoop; =========== PAR Packager, version 1.012 (PAR version 1.005) ========== +============== pp -C --vvv -L pp_logifle.txt -o sample_getSaveFile sample_getSaveFile +.pm =========== running sample_getSaveFile =============================== +============== Can't locate Tk/Bitmap.pm in @INC (@INC contains: CODE(0x8c40cfc) CODE +(0x8c410bc)) at Tk/Widget.pm line 270. at Tk/Widget.pm line 203 =========== after including 'use Tk::Bitmap;', running 'pp' and execut +ing 'sample_getSaveFile' the following message appears: ======== XS_Tk__Callback_Call error:must specify one of -data, -file, -array or + -id at Tk/Image.pm line 21. Tk::Error: must specify one of -data, -file, -array or -id at Tk/Image +.pm line 21. Tk callback for image Tk::Image::new at Tk/Image.pm line 21 Tk::Image::__ANON__ at Tk/Image.pm line 63 Tk::FBox::Update at Tk/FBox.pm line 404 Tk::After::once at Tk/After.pm line 90 [once,[{},after#13,idle,once,[{},Update]]] ("after" script) ====================================================================== +=================
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with getSaveFile in 'pp'-mode
by marto (Cardinal) on Mar 09, 2013 at 17:42 UTC | |
by jowe (Sexton) on Mar 09, 2013 at 18:47 UTC | |
by jowe (Sexton) on Mar 09, 2013 at 18:52 UTC | |
by marto (Cardinal) on Mar 09, 2013 at 18:58 UTC | |
by jowe (Sexton) on Mar 10, 2013 at 15:18 UTC | |
by jowe (Sexton) on Mar 10, 2013 at 16:34 UTC | |
by marto (Cardinal) on Mar 10, 2013 at 18:30 UTC | |
| |
by Anonymous Monk on Mar 10, 2013 at 20:40 UTC | |
by jowe (Sexton) on Mar 10, 2013 at 16:38 UTC | |
Re: Problem with getSaveFile in 'pp'-mode
by ww (Archbishop) on Mar 09, 2013 at 17:11 UTC | |
by jowe (Sexton) on Mar 09, 2013 at 18:50 UTC | |
by ww (Archbishop) on Mar 09, 2013 at 19:58 UTC |
Back to
Seekers of Perl Wisdom