Re: pass vars to sub via TK/Button

2003-12-16 Thread Oliver Schaedlich
Greetings, 16.12.2003, R. Joseph Newton wrote: > There is no decoding happening. Entry is a Tk widget. It is not a > string. The string contents are a property held in the widget's hash. > The get method is an accessor function that returns this value. AFAIK, Tk > does not use the sort of de

Re: pass vars to sub via TK/Button

2003-12-15 Thread Oliver Schaedlich
Greetings, thanks for your reply. 16.12.2003, R. Joseph Newton wrote: > What does perldoc Tk::Entry tell you? a) that there is a doc for Entry in the first place - I didn't know that, only read the main TK documentation. ^^; b) Now that I read it, hmm, not much I'm afraid. Either I missed

Re: pass vars to sub via TK/Button

2003-12-15 Thread Oliver Schaedlich
Greetings, 15.12.2003, zentara wrote: > $main ->> Button > ( -text => 'Add', > -command => sub{\&add_item($var1,$var2)} > ) -> pack; [...] > sub add_item { [...] >my $entry1 = $_[0]->get(); >my $entry2 = $_[1]->get(); [...] > } thanks for your reply. I tried this out and i

Re: pass vars to sub via TK/Button

2003-12-15 Thread Oliver Schaedlich
Greetings, 15.12.2003, [EMAIL PROTECTED] wrote: >$mw->>Button (-text=>"run", > -command=> sub {test($rb_val,$bonobo,$oracleid)}) > ->place(-x=>320,-y=>>250 ,-width=>75); thanks for your reply. I tried to adapt to your example: $main->Button ( -text => 'Add', -command => sub

pass vars to sub via TK/Button

2003-12-15 Thread Oliver Schaedlich
Greetings, I'd like to know how to pass variables fetched by TK/entry to a subroutine by using a Button. The Button/-command line in the following script is obviously wrong, but should suffice to illustrate what I want it to do. I'd be happy if someone could tell me how to do this properly. ---

Re: looking for help with Net::IRC

2003-04-04 Thread Oliver Schaedlich
Hello Dan, Thursday, April 3, 2003, 11:04:36 PM, you wrote: > Net::IRC isn't the best way in the world of creating an IRC bot. I just use > IO::Socket, and establish & maintain the connection to IRC myself within my > own source. Personally that's the better option. thanks for your advice. Since

looking for help with Net::IRC

2003-04-03 Thread Oliver Schaedlich
Greetings, I'm trying to put up a simple IRC bot using the Net::IRC module. Connecting and joining the test channel works quite fine, but I do not quite understand how to make the bot - for example - realize and react when its mode is changed. Is there a good tutorial or in depth documentation cov