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

Re: Re: Atomic operations in perl and Tk::IO

by rinceWind (Monsignor)
on Apr 01, 2003 at 15:18 UTC ( #247252=note: print w/replies, xml ) Need Help??

in reply to Re: Atomic operations in perl and Tk::IO
in thread Atomic operations in perl and Tk::IO

because $_[0] is the same as $prch when you call tail_lines($prch, $_[0]), and this seems to be not what you want.
Sorry, hiseldl, you are not correct. The call to tail_lines is in an anonymous sub, which is a closure, which is passed a line of text by the Tk::IO mechanism.

See Tk::IO for more details

Replies are listed 'Best First'.
Re: Re: Re: Atomic operations in perl and Tk::IO
by hiseldl (Priest) on Apr 01, 2003 at 16:44 UTC

    I've been writing Tk scripts for over a year now, and I temporarily forgot about closures as callbacks, oops, sorry. I'll leave the post as it is to maintain continuity of the thread and as a reminder to other's using Tk to watch for closures in the callbacks. :-)


    What time is it? It's Camel Time!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://247252]
[stevieb]: Corion: the problem with that is the 2.36 represents the underlying C library I've wrapped, which is why I want to use incrementals after the real version number. I've emailed modules@ to see if they can expedite the process for me...
[stevieb]: normally, it takes three days to delete, in case you want to change your mind

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-01-19 15:09 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (170 votes). Check out past polls.