[26200] in Perl-Users-Digest
Perl-Users Digest, Issue: 8387 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Sep 4 00:05:32 2005
Date: Sat, 3 Sep 2005 21:05:06 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 3 Sep 2005 Volume: 10 Number: 8387
Today's topics:
[ANNOUNCE] DBIx-Threaded 0.10 <dean.arnold@sbcglobal.net>
Can I Get The PID Of The Program That Launched My Progr <hal@thresholddigital.com>
Re: Can I Get The PID Of The Program That Launched My P <jim22@trlp.com>
Re: Can I Get The PID Of The Program That Launched My P <hal@thresholddigital.com>
Re: Can I Get The PID Of The Program That Launched My P <tadmc@augustmail.com>
How to find all modules, required by a given CPAN modul <newskf@numericable.fr>
Re: How to find all modules, required by a given CPAN m <tadmc@augustmail.com>
Re: Looking for Equation Solver <ignoramus14363@NOSPAM.14363.invalid>
Re: Looking for Equation Solver xhoster@gmail.com
Re: Looking for Equation Solver <ignoramus14363@NOSPAM.14363.invalid>
New Script Directory needs your scripts listed <zwWzg8R3@2JxJHR6.com>
Re: New Script Directory needs your scripts listed <tadmc@augustmail.com>
Variable::Strongly::Typed 1.0.0 released <methan@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 28 Aug 2005 19:37:13 GMT
From: Dean Arnold <dean.arnold@sbcglobal.net>
Subject: [ANNOUNCE] DBIx-Threaded 0.10
Message-Id: <IM9DCx.poM@zorch.sf-bay.org>
I'm pleased to announce the first CPAN release of DBIx-Threaded,
a pure Perl module that provides an apartment
threaded implementation of the DBI, thereby permitting DBI
objects (connection and statement handles) to be passed
between arbitrary perl threads (via Thread::Queue::Duplex objects).
Details available at http://www.presicient.com/dbixthrd,
or (shortly) at CPAN.
Regards,
Dean Arnold
Presicient Corp.
=================================================================
The uploaded file
DBIx-Threaded-0.10.tar.gz
has entered CPAN as
file: $CPAN/authors/id/D/DA/DARNOLD/DBIx-Threaded-0.10.tar.gz
size: 33191 bytes
md5: daaec9421f04af27deeff71da1f7abb8
No action is required on your part
Request entered by: DARNOLD (Dean Arnold)
Request entered on: Sun, 28 Aug 2005 19:15:01 GMT
Request completed: Sun, 28 Aug 2005 19:16:57 GMT
Thanks,
-- paused, v460
------------------------------
Date: Sat, 03 Sep 2005 15:43:28 -0400
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Can I Get The PID Of The Program That Launched My Program?
Message-Id: <yaKdnWoE8ZJCYYTeRVn-1w@comcast.com>
I'm working on Linux. I have some Perl programs that launch a program by
just putting the command line in backticks. So if program A launches
program B this way, is there any way for program B to get the PID of
program A?
Thanks!
Hal
------------------------------
Date: Sat, 03 Sep 2005 13:05:05 -0700
From: jim <jim22@trlp.com>
Subject: Re: Can I Get The PID Of The Program That Launched My Program?
Message-Id: <pan.2005.09.03.20.05.05.856842@trlp.com>
On Sat, 03 Sep 2005 15:43:28 -0400, Hal Vaughan wrote:
> I'm working on Linux. I have some Perl programs that launch a program by
> just putting the command line in backticks. So if program A launches
> program B this way, is there any way for program B to get the PID of
> program A?
>
> Thanks!
>
> Hal
Linux provide getppid(2) which gets the parent process ID. Perl supports
getppid().
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
------------------------------
Date: Sat, 03 Sep 2005 16:23:50 -0400
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Re: Can I Get The PID Of The Program That Launched My Program?
Message-Id: <GrGdnc2LrujJm4feRVn-tA@comcast.com>
jim wrote:
> On Sat, 03 Sep 2005 15:43:28 -0400, Hal Vaughan wrote:
>
>> I'm working on Linux. I have some Perl programs that launch a program by
>> just putting the command line in backticks. So if program A launches
>> program B this way, is there any way for program B to get the PID of
>> program A?
>>
>> Thanks!
>>
>> Hal
>
> Linux provide getppid(2) which gets the parent process ID. Perl supports
> getppid().
Great! That's exactly what I need! (It also saves the pain of adding
functions to make launching programs add an argument like
"--launchpid=$pid" as well as reading it in the launched program!)
Thanks.
Hal
------------------------------
Date: Sat, 3 Sep 2005 15:35:54 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Can I Get The PID Of The Program That Launched My Program?
Message-Id: <slrndhk29a.6rv.tadmc@magna.augustmail.com>
jim <jim22@trlp.com> wrote:
> On Sat, 03 Sep 2005 15:43:28 -0400, Hal Vaughan wrote:
>
>> I'm working on Linux. I have some Perl programs that launch a program by
>> just putting the command line in backticks. So if program A launches
>> program B this way, is there any way for program B to get the PID of
>> program A?
> Linux provide getppid(2) which gets the parent process ID. Perl supports
> getppid().
Which will probably return the PID of the shell that the
backticks started rather than the PID of program A.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 04 Sep 2005 02:25:45 +0200
From: News KF <newskf@numericable.fr>
Subject: How to find all modules, required by a given CPAN module
Message-Id: <431a3ee2$0$161$a3f2974a@nnrp1.numericable.fr>
Hi,
I'd like to install the Pixie module (CPAN)
Is there a fast way of finding recursively all modules needed by Pixie.
Currently my methodology is less than satisfying.
I make and make test the Pixie module.
If it fails I'm looking at the error messages and try to locate and
install the modules mentioned in the error messages.
Then I retry to build / test pixie again.
I'm quite sure, that there is a better way of doing it.
Thanks in advance for any pointers and bye
nkf
------------------------------
Date: Sat, 3 Sep 2005 20:52:12 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: How to find all modules, required by a given CPAN module
Message-Id: <slrndhkkqc.795.tadmc@magna.augustmail.com>
News KF <newskf@numericable.fr> wrote:
> I'd like to install the Pixie module (CPAN)
And you haven't even tried:
perldoc -q module
yet?
> Is there a fast way of finding recursively all modules needed by Pixie.
>
> Currently my methodology is less than satisfying.
>
> I make and make test the Pixie module.
>
> If it fails I'm looking at the error messages and try to locate and
> install the modules mentioned in the error messages.
>
> Then I retry to build / test pixie again.
>
> I'm quite sure, that there is a better way of doing it.
The CPAN module will find and install the dependencies for you:
perldoc CPAN
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 03 Sep 2005 18:36:07 GMT
From: Ignoramus14363 <ignoramus14363@NOSPAM.14363.invalid>
Subject: Re: Looking for Equation Solver
Message-Id: <r2mSe.64925$06.5846@fe78.usenetserver.com>
I wrote one
http://www.algebra.com/services/rendering/simplifier.mpl
Besides simplifying, it shows work and plots math formulas. It is not
available publicly though. There is a Math::Symbolic module, but I
found it extremely lacking.
i
On Sat, 03 Sep 2005 19:49:43 +0200, Chris <no@spam> wrote:
> Hi,
>
> does anybody know a Perl program or script that is able to solve
> mathematical equations. So, if I input a string, say, $e = "2x+1=5";
> the output would be "x=2".
>
> If anybody knows about a program that can do something like this, please
> let me know.
>
> Thank you,
> Chris
--
------------------------------
Date: 03 Sep 2005 22:51:13 GMT
From: xhoster@gmail.com
Subject: Re: Looking for Equation Solver
Message-Id: <20050903185113.080$cg@newsreader.com>
Ignoramus14363 <ignoramus14363@NOSPAM.14363.invalid> wrote:
> I wrote one
>
> http://www.algebra.com/services/rendering/simplifier.mpl
>
> Besides simplifying, it shows work and plots math formulas. It is not
> available publicly though.
Also, it doesn't give the right answer.
"Text form: ((x^2-6x+9)/(x^2-3x-10))/((x^2-5x+6)/(x^2-8x+15)) simplifies to
(x-3)/(x+2)"
No, it doesn't.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Sat, 03 Sep 2005 23:53:06 GMT
From: Ignoramus14363 <ignoramus14363@NOSPAM.14363.invalid>
Subject: Re: Looking for Equation Solver
Message-Id: <CHqSe.63848$Vx2.33968@fe16.usenetserver.com>
On 03 Sep 2005 22:51:13 GMT, xhoster@gmail.com <xhoster@gmail.com> wrote:
> Ignoramus14363 <ignoramus14363@NOSPAM.14363.invalid> wrote:
>> I wrote one
>>
>> http://www.algebra.com/services/rendering/simplifier.mpl
>>
>> Besides simplifying, it shows work and plots math formulas. It is not
>> available publicly though.
>
> Also, it doesn't give the right answer.
>
> "Text form: ((x^2-6x+9)/(x^2-3x-10))/((x^2-5x+6)/(x^2-8x+15)) simplifies to
> (x-3)/(x+2)"
>
> No, it doesn't.
I will appreciate corrections and suggestions. What's the right answer
there?
i
------------------------------
Date: Sat, 03 Sep 2005 18:32:36 -0500
From: "YourScripts.net" <zwWzg8R3@2JxJHR6.com>
Subject: New Script Directory needs your scripts listed
Message-Id: <TaKdnftlap8Jr4feRVn-rw@comcast.com>
http://yourscripts.net/
YourScripts.net offers a nice directory that is very search engine friendly so your script software will get hits and will get noticed.
Takes nothing to submit your script software to our directory and help us grow.
This listing will be posted in all the major directories within the next couple of days including hotscripts. So if you want traffic and want sales submit your script software listing today.
http://yourscripts.net/
wxMYgHwJ83Xy0AKcKZ9Dawsl4RqlYmgwBbH
------------------------------
Date: Sat, 3 Sep 2005 20:58:20 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: New Script Directory needs your scripts listed
Message-Id: <slrndhkl5s.795.tadmc@magna.augustmail.com>
Nameless Spammer <zwWzg8R3@2JxJHR6.com> wrote:
> Subject: New Script Directory needs your scripts listed
How much do you pay for fulfilling your needs?
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 2 Sep 2005 16:28:42 GMT
From: "zzo" <methan@gmail.com>
Subject: Variable::Strongly::Typed 1.0.0 released
Message-Id: <IM9DCK.n7A@zorch.sf-bay.org>
DESCRIPTION
This modules allow you to strongly type your variables. Also known
as the 'no fun' module - it can greatly enhance you code's quality
and robustness.
By enforcing types on some (or all) of your variables you will
eliminate
a large class of careless (& not so careless) errors.
This could also aid an editor or code-browsing tools to verify code
correctness without having to execute the script.
SYNOPSIS
use Variable::Strongly::Typed;
my $int :TYPE('int'); # must have an 'int' value
my $float :TYPE('float'); # must have a 'float' value
my $string :TYPE('string'); # must not be a reference
my $file :TYPE('IO::File'); # must be an IO::File
my @array_of_ints :TYPE('int'); # Each slot must contain an
int
my %hash_of_floats :TYPE('float'); # Each value must be a
float
my @array_of_rgb :TYPE(\&red_green_blue); # my enumerated type
# ... and later ...
$int = 23; # All is well
$int = 'howdy!'; # This line will croak with a good error
message
$float = 3.23; # All is well, nothing to see here
$float = new XML::Parser; # croak!
$array_of_ints[23] = 44; # Groovy
$array_of_ints[12] = 'yah '; # croak!
$hash_of_floats{pi} = 3.14159; # no problem
$hash_of_floats{e} = new IO::File; # croak!
# Return 1 if this val is RED, BLUE, or GREEN
# 0 otherwise
sub red_green_blue {
local $_ = shift;
/\A RED \z/xms || /\A BLUE \z/xms || /\A GREEN \z/xms;
}
$array_of_my_very_own_types[23] = 99; # croak!
$array_of_my_very_own_types[2] = 'BLUE'; # OK!
Available at a CPAN near you!
Mark <mark@zzo.com>
------------------------------
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 8387
***************************************