Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Code tested as is on Win98/ActiveState 5.8.2 (identical results from MS_DOS Prompt and MSYS commandline):

[ ~/tmp ] $ perl pg_filevent Start to listen ... Entered numbers() about to send 1 Connection established about to send 2 about to send 3 about to send 4 about to send 5 about to send 6 about to send 7 about to send 8 about to send 9 about to send 10 numbers() thread quiting ... callback triggered callback triggered callback triggered

The last line was repeated every time button was clicked.

I then retested as before but with 'fileevent' commented out:

[ ~/tmp ] $ perl pg_filevent Start to listen ... Entered numbers() about to send 1 Connection established about to send 2 about to send 3 about to send 4 about to send 5 about to send 6 about to send 7 about to send 8 about to send 9 about to send 10 numbers() thread quiting ... callback triggered After read 1callback triggered After read 2callback triggered After read 3callback triggered After read 4[ ~/tmp ] $

With this test I noticed that the number displayed above the button incremented with each button click.

In the previous tests, I waited until numbers() thread quiting ... was displayed before clicking the button. In this test, I started clicking the button as soon as the GUI appeared.

[ ~/tmp ] $ perl pg_filevent Start to listen ... Entered numbers() about to send 1 Connection established about to send 2 callback triggered After read 1about to send 3 callback triggered After read 2about to send 4 callback triggered After read 3about to send 5 callback triggered After read 4about to send 6 callback triggered After read 5about to send 7 callback triggered After read 6about to send 8 callback triggered After read 7about to send 9 about to send 10 callback triggered After read 8numbers() thread quiting ... callback triggered After read 9callback triggered After read 10

Regards,

PN5


In reply to Re: fileevent on Win 32 by Prior Nacre V
in thread fileevent on Win 32 by pg

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 browsing the Monastery: (3)
As of 2024-06-14 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.