Re: insert in perl tk

2012-08-24 Thread Shekar
gt; > > { > > > $c = localtime(); > > > return $c; > > > } > > > > > > so whenever i call insert method , it shud call function gettime > > > and print the latest time in the text box > > > please suggest > > > > > > re

Re: insert in perl tk

2012-08-24 Thread Shlomi Fish
o whenever i call insert method , it shud call function gettime > > and print the latest time in the text box > > please suggest > > > > regards > > irfan > > > > > > > > > > > > > > From: Jim G

Re: insert in perl tk

2012-08-24 Thread Irfan Sayed
thanks. it worked! regards irfan From: Shekar To: Irfan Sayed Cc: Jim Gibson ; Perl Beginners Sent: Friday, August 24, 2012 12:23 PM Subject: Re: insert in perl tk Try this. $t->insert("end", &gettime); -- Shekar On Fri, Aug 24, 2012 at 11:58 AM, Irfan Sayed

Re: insert in perl tk

2012-08-23 Thread Shekar
$c = localtime(); > return $c; > } > > so whenever i call insert method , it shud call function gettime and print > the latest time in the text box > please suggest > > regards > irfan > > > > > > > From: Jim Gibson >

Re: insert in perl tk

2012-08-23 Thread Irfan Sayed
_ From: Jim Gibson To: Perl Beginners Sent: Friday, August 24, 2012 11:13 AM Subject: Re: insert in perl tk On Aug 23, 2012, at 9:35 PM, Irfan Sayed wrote: > thanks. this will help to print the contents of array on separate line. > however, if at all we need to ca

Re: insert in perl tk

2012-08-23 Thread Jim Gibson
On Aug 23, 2012, at 9:35 PM, Irfan Sayed wrote: > thanks. this will help to print the contents of array on separate line. > however, if at all we need to call function then what is the syntax, how we > can call that ? What function do you want to call? When do you want to call it? What does the

Re: insert in perl tk

2012-08-23 Thread Irfan Sayed
Sent: Thursday, August 23, 2012 11:40 PM Subject: Re: insert in perl tk On Thu, 23 Aug 2012 10:51:09 -0700 (PDT) Irfan Sayed wrote: > i need to print the contents of array on separate line , so , i > thought , i should write one function where i will print the contents > of array on

Re: insert in perl tk

2012-08-23 Thread Shawn H Corey
On Thu, 23 Aug 2012 10:51:09 -0700 (PDT) Irfan Sayed wrote: > i need to print the contents of array on separate line , so , i > thought , i should write one function where i will print the contents > of array on each line Do you mean you want each item from an array on each line? If so: $t-

Re: insert in perl tk

2012-08-23 Thread Jim Gibson
On Aug 23, 2012, at 10:51 AM, Irfan Sayed wrote: > it was quite rude. anyway What was quite rude? > lets say if i have to display the contents of array using insert method. > if i just type : $t->insert("end", "@arr1"); > then surely , it will print the contents of array but on the same line

Re: insert in perl tk

2012-08-23 Thread Irfan Sayed
2012 10:54 PM Subject: Re: insert in perl tk On Thursday, August 23, 2012 at 10:15 AM, Irfan Sayed wrote: > can someone please suggest ? > Explain what you're actually trying to achieve, instead of asking how to do what you think will let you accomplish what you're trying t

Re: insert in perl tk

2012-08-23 Thread John SJ Anderson
On Thursday, August 23, 2012 at 10:15 AM, Irfan Sayed wrote: > can someone please suggest ? > Explain what you're actually trying to achieve, instead of asking how to do what you think will let you accomplish what you're trying to achieve. Yes, if you write the insert() method properly, you cou

Re: insert in perl tk

2012-08-23 Thread Irfan Sayed
can someone please suggest ? regards irfan From: Irfan Sayed To: "beginners@perl.org" Sent: Thursday, August 23, 2012 4:15 PM Subject: insert in perl tk hi, can we call function in the insert method of perl tk ? i have code like this:  $t-&g

insert in perl tk

2012-08-23 Thread Irfan Sayed
hi, can we call function in the insert method of perl tk ? i have code like this:  $t->insert("end", "\&abc"); so when this line gets executed, it should first call function abc please suggest regards irfan