It is possible to change vars in the main script with fork if you use IPC::Shareable But be forewarned it's gets pretty cumbersome when you have 2+ processes sharing vars.
> -----Original Message----- > From: Chas Owens [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 3:29 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: threads in perl > > > On Wed, 2002-07-24 at 02:57, [EMAIL PROTECTED] wrote: > > Hello All, > > > > I want to execute same perl procedure with different parameters at > > the almost same time in a perl program indefendantly. (next process > > should be started without waiting for the end of previous one) The > > procedure is located in .pm file. How can I use thread in > perl to get > > my work done? > > > > regards > > Rohana. > > You need to question whether or not you need threads. You can achieve > much the same result with fork. If your subroutine does > things without > needing to modify variables in the main script then fork is probably a > better solution. Read perldoc -f fork for more info. > > -- > Today is Setting Orange the 59th day of Confusion in the YOLD 3168 > Keep the Lasagna flying! > > Missile Address: 33:48:3.521N 84:23:34.786W > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]