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 ...
26871
Peter L. Berghold
blue_cowdawg
Mar 10, 2010 7:15 pm
... It is possible that I don't fully understand the problem, but I would think that a FIFO would be trivial to implement in Perl. Consider the following: my...
26872
merlyn@...
merlynstoneh...
Mar 10, 2010 7:33 pm
... Peter> @transactions = sort { $a->{timestamp} <=> $b->{timestamp} }, Peter> @transactions; That comma doesn't go there. It's either: sort EXPRESSION, LIST ...
26873
sandeeptt
Mar 16, 2010 11:30 am
Hi, written a perl script, which will connect to IMAP server, fetch emails according to the subject match, into a file. This file will be in MIME format, which...
26875
Jins Thomas
hellojins
Mar 19, 2010 5:52 am
Hi all, Great day !!!!!! I would like to ask your opinion on 1. Which is the best option for creating charts and graphs in perl. My requirement is to create...
26876
Kevin Perez
conveyance
Mar 19, 2010 8:48 pm
I've used this product and found it great for all types of charts... http://www.advsofteng.com/cdperl.html Highly cross-platform and highly customizable. ...
26877
Sarah Fox
sarahfoxnz@...
Mar 31, 2010 10:42 pm
Hi, I've recently joined this group, & checking the archives, I see it was full of spam (apparently, but there are deleted messages, so i can't be sure) since...
26878
merlyn@...
merlynstoneh...
Mar 31, 2010 10:54 pm
... Sarah> I've recently joined this group, & checking the archives, I see Sarah> it was full of spam (apparently, but there are deleted messages, Sarah> so i...
Dear All, Can you provide me with good tutorial or book which can help me to get the concept of multidimensional array / hash and references in perl. -- Thanks...
26881
merlyn@...
merlynstoneh...
Apr 2, 2010 8:10 am
... Bhavesh> Can you provide me with good tutorial or book which can help me to Bhavesh> get the concept of multidimensional array / hash and...
26882
Shlomi Fish
shlomif2
Apr 2, 2010 9:50 am
Hi Bhavesh, ... In addition to those, you can look at the links to resources given here: http://perl-begin.org/topics/references/ If something is still...
26883
andy_bach@...
afbach1
Apr 2, 2010 4:21 pm
Date::Parse uses Time::Zone and the tz_offset() function which seems to have a problem: $ perl -le 'use Time::Zone; for $tz ("CST", "CDT", "CST6CDT") {print ...
26884
Bhavesh Vala
bhavesh_21_77
Apr 3, 2010 5:20 am
Thanks a lot. ... -- Thanks & Regards, Bhavesh Vala. http://bhaveshvala.wordpress.com ________________________________ [Non-text portions of this message have...
26885
bpuri_12
Apr 7, 2010 11:29 am
Hi, I am very new to Perl. Could someone please help me in writing the Following. I want to delete a line containing pattern from the file if it appears after...
26886
andy_bach@...
afbach1
Apr 7, 2010 4:30 pm
Just to avoid the "is this homework?" harassment you might get, it's a good idea to post your attempt at this point. That keeps it from looking like you're...
26887
Edward Willekens
edwardwillekens
Apr 7, 2010 7:53 pm
$open=0; if (open(FD,"<f1.txt")){ Â while (<FD>) { Â if (/open/) { Â Â $open=1; Â } Â elsif (($open)&&(/null/)) { Â Â $open=0; Â Â next; Â } Â print...
26888
nagaprasadv
Apr 8, 2010 10:40 am
Suppose if i have the command something like this. $rc=system("cat sample;echo $?") The file sample is not there in the directory which i am executing the...
26889
Shlomi Fish
shlomif2
Apr 8, 2010 10:58 am
... The problem is that echo outputs to the standard output and normally returns a true process exit status code (Unless there's a very unlikely event that it ...
26890
Sarah Fox
sarahfoxnz@...
Apr 25, 2010 3:34 am
Hi, I'm familiar with the PHP version of preg_replace, but is this also a perl function aswell ? I've been to perldoc.perl.org (using the google search), &...
26891
Charles K. Clarkson
charlesclarkson
Apr 25, 2010 5:28 am
... Yes. It is called substitution and is similar, but easier to write than preg_replace. "preg" stands for perl regular expressions. Since you are already in...
26892
Shlomi Fish
shlomif2
Apr 25, 2010 9:28 am
... Also see the links at: http://perl-begin.org/topics/regular-expressions/ One should note that Perl has first-order syntax for regular expressions instead...
26893
Sarah Fox
sarahfoxnz@...
Apr 25, 2010 11:31 am
... From: Charles K. Clarkson <cclarkson@...> ... s/// is described in the perlop manpage under the Regexp Quote-Like Operators section. < Ah, thank...
26895
Amit Saxena
learn.tech123@...
May 11, 2010 2:44 pm
Hello all, Please let me know if anybody has any idea on the development of Complex Event Processing (CEP) applications in perl. I have been assigned a task...
26896
Kelly Jones
kelly.terry.jones@...
May 17, 2010 5:55 pm
... Mon May 17 11:09:43 MDT 2010 0 In other words, the return value of the date command in an END subroutine overrides my desired exit value. How do I fix...
26897
merlyn@...
merlynstoneh...
May 17, 2010 6:21 pm
... Kelly> Mon May 17 11:09:43 MDT 2010 Kelly> 0 Kelly> In other words, the return value of the date command in an END subroutine Kelly> overrides my desired...
26898
billkirk23
May 17, 2010 6:53 pm
I am reading in an input file. The file is a column of names and addresses. I then want to concatenate the name and address on one line with quotes and...
26899
merlyn@...
merlynstoneh...
May 17, 2010 6:56 pm
... billkirk23> I am reading in an input file. The file is a column of billkirk23> names and addresses. I then want to concatenate the name billkirk23> and...
26900
Kelly Jones
kelly.terry.jones@...
May 17, 2010 7:35 pm
These 3 lines of code: if (fork()) {sleep 10; exit(0);} $SIG{'CHLD39;} = 'IGNORE39;; exit(system("/usr/lib/nagios/plugins/check_ping -H google.com -w 500,20% -c...
26901
mike lively
livelymw
May 17, 2010 8:06 pm
Actually there are modules you can use to easily create the spreadsheet directly out of Perl. Eliminating the need for the CSV file. I have found creating...