Chas. Owens wrote:
On Mon, Apr 14, 2008 at 12:50 AM, Richard Lee <[EMAIL PROTECTED]> wrote:
snip
my $start = qr/@{[ POSIX::strftime( '%b %e %H:', localtime time - ONE_HOUR )
]}/;
snip
I will have to try out your POSIX solution as I have particular in adding
space if date is single digits (April 3 gets additional space vs April 11
which does not).
snip
from man strftime
%e is replaced by the day of month as a decimal number (1-31); single
digits are preceded by a blank.
one more question regarding this project...
so let's say file contains,
a b c d "hi how" d
d d e "hi_now how are" d e
d "hi_now how" d "hi_now_now"
I want a function like that can do,
while (@file) {
push @sum , split;
}
but since inside "" there are space in between words, I cannot just use
split them.
I have used comma separated modules before. .. is there one exist for
space separted modules?
I have to think about the logic to build them(without modules).. as that
gives me better understanding and learning experinces.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/