home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _0a98ed20f94f39284439ef7cfa73bcd4 < prev    next >
Text File  |  2000-03-23  |  3KB  |  85 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Tk::IO - high level interface to Tk's 'fileevent' mechanism</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> Tk::IO - high level interface to Tk's 'fileevent' mechanism</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#warning">WARNING</A></LI>
  25.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  26.     <LI><A HREF="#bugs">BUGS</A></LI>
  27. </UL>
  28. <!-- INDEX END -->
  29.  
  30. <HR>
  31. <P>
  32. <H1><A NAME="name">NAME</A></H1>
  33. <P>Tk::IO - high level interface to Tk's 'fileevent' mechanism</P>
  34. <P>
  35. <HR>
  36. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  37. <UL>
  38. <LI>Linux</LI>
  39. <LI>Solaris</LI>
  40. <LI>Windows</LI>
  41. </UL>
  42. <HR>
  43. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  44. <PRE>
  45.   my $fh = Tk::IO->new(-linecommand => callback, -childcommand => callback);
  46.   $fh->exec("command")
  47.   $fh->wait
  48.   $fh->kill</PRE>
  49. <P>
  50. <HR>
  51. <H1><A NAME="warning">WARNING</A></H1>
  52. <P>INTERFACES TO THIS MODULE MAY CHANGE AS PERL'S IO EVOLVES
  53. AND WITH PORT OF TK4.1</P>
  54. <P>
  55. <HR>
  56. <H1><A NAME="description">DESCRIPTION</A></H1>
  57. <P>Tk::IO is now layered on perl's IO::Handle class. Interfaces
  58. have changed, and are still evolving.</P>
  59. <P>In theory C methods which enable non-blocking IO as in earlier Tk-b*
  60. <CODE>release(s)</CODE> are still there. I have not changed them to use perl's
  61. additional Configure information, or tested them much.</P>
  62. <P>Assumption is that <STRONG>exec</STRONG> is
  63. used to fork a child process and a callback is called each time a
  64. complete line arrives up the implied pipe.</P>
  65. <P>``line'' should probably be defined in terms of perl's input record
  66. separator but is not yet.</P>
  67. <P>The -childcommand callback is called when end-of-file occurs.</P>
  68. <P>$fh-><STRONG>wait</STRONG> can be used to wait for child process while processing
  69. other Tk events.</P>
  70. <P>$fh-><STRONG>kill</STRONG> can be used to send signal to child process.</P>
  71. <P>
  72. <HR>
  73. <H1><A NAME="bugs">BUGS</A></H1>
  74. <P>Still not finished.
  75. Idea is to use ``exec'' to emulate ``system'' in a non-blocking manner.</P>
  76. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  77. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  78. <STRONG><P CLASS=block> Tk::IO - high level interface to Tk's 'fileevent' mechanism</P></STRONG>
  79. </TD></TR>
  80. </TABLE>
  81.  
  82. </BODY>
  83.  
  84. </HTML>
  85.