[26742] in Perl-Users-Digest
Perl-Users Digest, Issue: 8827 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jan 5 00:05:18 2006
Date: Wed, 4 Jan 2006 21:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 4 Jan 2006 Volume: 10 Number: 8827
Today's topics:
Re: Are there alternatives to exec and system <jurgenex@hotmail.com>
GD - way to preserve PNG transparency? <kisrael@sunfire12.eecs.tufts.edu>
Re: output of system() call <jurgenex@hotmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 05 Jan 2006 02:57:23 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Are there alternatives to exec and system
Message-Id: <nW%uf.17261$Uf7.9714@trnddc01>
Daniel Kaplan wrote:
> I would like one of my Perl scripts to "spawn" another Perl script.
> However it seems that with exec() my calling app stops running
Not quite. YOur currently executing code is simply replaced(!) by whatever
program you are exec()ing.
That is the intended semantic of exec() in pretty much any programming
language
> and
> everything goes to the script I exec'd. And that system() freezes my
> calling app and it waits for the new app to complete and return.
Well, freezes is a strong work, but if you mean system() waits until the
called program terminates then you are right. That is the intended semantic
of system().
> Is there a function in Perl that let's me call a new app, and both
> apps (calling and the called) both just run completly independently
> of each other?
Yes, like in many, many other programming languages it is called fork()
jue
------------------------------
Date: Thu, 05 Jan 2006 02:51:28 GMT
From: Kirk Is <kisrael@sunfire12.eecs.tufts.edu>
Subject: GD - way to preserve PNG transparency?
Message-Id: <QQ%uf.1431$No6.34104@news.tufts.edu>
So I'm trying to load a PNG with transprency...
use GD;
$im = GD::Image->newFromPng("orig/abe.png");
print $im->transparent(),"\n";
but it always prints -1
I think, confusing the issue, there might be two "blacks" in the palette,
one use in the image, and one to set the transperency...
The ancient version of PSP I'm using doesn't respect the transparency
either, but irfanview and browsers get it correct.
Any suggestions? Is there another way of loading the image that might
preserve the palette and the transparency better?
Thanks!
--
QUOTEBLOG: http://kisrael.com SKEPTIC MORTALITY: http://kisrael.com/mortal
"As they say in my country, the only thing that separates us from the animals
are mindless superstition and pointless ritual."--Latka Gravas,"Taxi"
------------------------------
Date: Thu, 05 Jan 2006 03:04:29 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: output of system() call
Message-Id: <110vf.5012$Yc2.1480@trnddc04>
Madhu Ramachandran wrote:
> i am perl newbie. i read that system() call can be used to invoke
> other program (shell scripts etc). The return code of the program is
> returned by system() call and i have to >> by 8 bits.
>
> is there any variable which will contain ouput printed by the program
> in system() call?
Yep. It works exactly as described in paragraph 3, sentence 4 of the
documentation of the very function that you are using.
jue
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8827
***************************************