Re: Modeling FIFO financial transactions in Perl

2010-03-10 Thread Jay Savage
On Wed, Mar 10, 2010 at 12:36 PM, Kelly Jones wrote: > How do I easily model first-in-first-out (FIFO) financial transactions > in Perl? Example: > >  % I buy 100 shares of XYZ for $8/share on Day 1, another 100 shares >  for $9/share on Day 2, and another 100 shares for $10

Modeling FIFO financial transactions in Perl

2010-03-10 Thread Kelly Jones
How do I easily model first-in-first-out (FIFO) financial transactions in Perl? Example: % I buy 100 shares of XYZ for $8/share on Day 1, another 100 shares for $9/share on Day 2, and another 100 shares for $10/share on Day 3. % On Day 4, I sell 150 shares for $11/share. I calculate my profit

RE: transactions in perl

2003-06-25 Thread Dan Muey
> Hi All! Howdy! > > I have the following trouble: > > I have an script in which several code lines must be executed > so if one of these lines is not executed the other lines must > neither be executed, and I would like to know if perl has > something like asp transactions to force the exe

RE: transactions in perl

2003-06-25 Thread NYIMI Jose (BMB)
Yes, Have a look to this : http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_2002/sld050.htm HTH, José. -Original Message- From: Miguel Angel Morales [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: transactions in perl Hi All! I have

transactions in perl

2003-06-25 Thread Miguel Angel Morales
Hi All! I have the following trouble: I have an script in which several code lines must be executed so if one of these lines is not executed the other lines must neither be executed, and I would like to know if perl has something like asp transactions to force the execution of several code line