(none) imager-devel
/ help / lists / applications / search /
 

Re: Apparently can't write pipe to a filehandle.

From: Tony Cook (
07544@xyz.molar.is)
Date: Sun 02 Mar 2003 - 22:28:54 GMT

  • Next message: 07621@xyz.molar.is: "Compositing images"

    On Fri, Feb 28, 2003 at 09:41:24PM -0000, Douglass Turner wrote:
    > Hello,
    >
    > The following failed during the write. Complained about not being able to
    > seek.
    >
    > # take a look at the results
    > open (DISPLAY, "| display -") || die "Error open (DISPLAY, ...) $!";
    > binmode DISPLAY;
    >
    > $im->write(fh=>'DISPLAY', type=>'png') || die "Error: write(STDOUT) $!";

    Use a glob here:

      $img->write(fh=>*DISPLAY, type=>'png') || die "Error: write(STDOUT) $!";

    By the time Imager converts "DISPLAY" into a file handle it's in the wrong
    package, using a glob avoids that.

    Tony



  •