home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / Tk / Ghostscript / Postscript.al < prev    next >
Encoding:
Text File  |  1997-08-10  |  470 b   |  23 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Ghostscript.pm.  Changes made here will be lost.
  2. package Tk::Ghostscript;
  3.  
  4. sub Postscript
  5. {
  6.  my $w  = shift;
  7.  $w->StartInterp unless(exists $w->{'pid'});
  8.  if (exists $w->{'mwin'})
  9.   {
  10.    $w->SendClientMessage('NEXT',$w->{'mwin'},8,"");
  11.    delete $w->{'mwin'};
  12.   }
  13.  my $fh = $w->{'FH'};
  14.  my $pend = $w->{'Pending'};
  15.  unless (@$pend)
  16.   {
  17.    $w->fileevent($fh,'writable',['SendIt',$w]);
  18.   }
  19.  push(@$pend,@_);
  20. }
  21.  
  22. 1;
  23.