473,387 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Begginer Question about TK::filevent

Hello All,
I am beginer in Perl. I am trying a serial port data logging
application.
Requirement of my application is that it should be capable of
receiving and transmitting on same or diffrent ports depending on the
options.
I transmit 34 Bytes of data and would receive 34 bytes of data in
return. Now the problem is that I have to time stamp the packet on the
receive side whenever comlete pkt is received.
I am on windows XP machine and I have Active State Perl 5.8
I am using win32::serialPort pm for configuration setup.
I am trying to use Tk::filevent to iniatiate a call back whenever my
Serial port becomes readable.
But i am getting an error "Not a Glob reference in IO pm"
I have given the follwoing command:

$mw->fileevent($ob, 'readable', \&read_comport);
$mw is an my mainwindow instance
$ob is the object of my comport.
I wish to call &read_comport whenever my comport becomes readable
But i get the above error as mentioned above and my program quits.

I am doing right.
Can the object $ob be passed as fileHandle to fileevent??
or I am interprating something wrong!!
Your help would behighly apprecaited!!
Thanks a lot in advance!!

Sincerely,
Mandeep
Jul 19 '05 #1
0 2360

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Player | last post by:
During my setup install of python, I came across an option stating... Compile python files to, .pyc I left it unchecked for now, should I of done otherwise?? As I am a begginer to this, I...
4
by: Louise Woodward | last post by:
I am looking for some beginner guide for someone to learn asp - tutorials, examples etc Thanks -- Louise Woodward Opal Telecom Application Team Irlam
5
by: Leonardo Hyppolito | last post by:
Hi there, I'm in the last year of my graduation course in Computer Science. I decided to make a final project about XML. The idea I have is simple: to make a tool for editing DTD's, using a...
2
by: Emmie | last post by:
hi, i wanted to display the value of my textbox into my msgbox. does anyone know the correct code for this? i have tried..... MessageBox.Show("You are about to insert the product:...
9
by: gor | last post by:
I would like to find out how javascript can change some text (string) inside <DIV> tag with event onClick. That i want to solve with function callWrite(); ... so you can see in the code. The thing...
6
by: RobcPettit | last post by:
HI, please forgive this question. Im new to c# and as you probably seen from prev questions Ive got along way to go. Ive been woking my way through a couple of books, asking questions here and Id...
2
by: thecamisland | last post by:
Hello, I'm a begginer. Is this going to work? Dim fm As FirstMenu Class TransHeadInfo Public Function Validate() As Boolean ... fm.Show() ...
11
by: srenusa | last post by:
hi, I am quite new to c++ programming and I would need some help with my college assigment: write a program which reads input c++ file and removes commentary. The commentary can be oneline(//) and...
13
by: deshix | last post by:
Hi everyone, can you recommend me the best way to learn the PHP? I'm really begginer...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.