Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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
=========== 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) ====================================================================== +=================

In reply to Problem with getSaveFile in 'pp'-mode by jowe

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-24 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found