Did this turn into the bash list while I was gone? The point about the OP not
letting us know what he/she has tried is a good one, but why respond to
inadequate information with off-topic information?
-Original Message-
From: Elie De Brauwer [mailto:[EMAIL PROTECTED]
Hi list,
I am trying to subclass Math::Currency to change the default bstr() and
move it to a different function, so my numbers are not formatted by
default (I am unable to just strip existing formatting in a certain
situation).
Here is what I did:
package Tools::Currency;
use base qw(Math::C
perlwannabe wrote:
I have a file I download everyday, let's call it "output.txt." The file
"output.txt" is saved in a directory by date, for example 10012005 (for Oct.
1, 2005). I have a years worth of output files in my c:\ drive. Now I have
to rename each output file so that I can copy all o
perlwannabe wrote:
> I have a file I download everyday, let's call it "output.txt." The file
> "output.txt" is saved in a directory by date, for example 10012005 (for Oct.
> 1, 2005). I have a years worth of output files in my c:\ drive. Now I have
> to rename each output file so that I can copy
I have a file I download everyday, let's call it "output.txt." The file
"output.txt" is saved in a directory by date, for example 10012005 (for Oct.
1, 2005). I have a years worth of output files in my c:\ drive. Now I have
to rename each output file so that I can copy all of the output to a sin
On Oct 23, Frank Bax said:
my $aval=''; map { $aval=$aval.sprintf("%4d",$aSuit{$a}{$_}); }
@f_seq;
my $aval=''; foreach $f (@f_seq) {
$aval=$aval.sprintf("%4d",$aSuit{$a}{$f}); }
You should be using $aval .= here, instead of $aval = $aval . And as
John has shown, join()
Frank Bax wrote:
> At 02:11 PM 10/23/05, John W. Krahn wrote:
>
>> Frank Bax wrote:
>> > my $snew =
>> > sprintf("%4d%4d",$aSuit{$new}{'rescap'},$aSuit{$new}{'resval'});
>> > my $slow =
>> > sprintf("%4d%4d",$aSuit{$low}{'rescap'},$aSuit{$low}{'resval'});
>>
>> Using sprintf() to c
At 04:35 PM 10/23/05, Frank Bax wrote:
At 02:11 PM 10/23/05, John W. Krahn wrote:
Frank Bax wrote:
> my $snew =
> sprintf("%4d%4d",$aSuit{$new}{'rescap'},$aSuit{$new}{'resval'});
> my $slow =
> sprintf("%4d%4d",$aSuit{$low}{'rescap'},$aSuit{$low}{'resval'});
Using sprintf() to
On Oct 23, Frank Bax said:
At 02:11 PM 10/23/05, John W. Krahn wrote:
Frank Bax wrote:
> my $aval=''; map { $aval=$aval.sprintf("%4d",$aSuit{$a}{$_}); }
@f_seq;
> my $bval=''; map { $bval=$bval.sprintf("%4d",$aSuit{$b}{$_}); }
@f_seq;
You shouldn't use map in void context, you sho
At 02:11 PM 10/23/05, John W. Krahn wrote:
Frank Bax wrote:
> my $snew =
> sprintf("%4d%4d",$aSuit{$new}{'rescap'},$aSuit{$new}{'resval'});
> my $slow =
> sprintf("%4d%4d",$aSuit{$low}{'rescap'},$aSuit{$low}{'resval'});
Using sprintf() to concatenate numbers is (AFAIK) going to
John W. Krahn wrote:
> Frank Bax wrote:
>>Rather than create/store/sort many billion entities, my script creates
>>these entities dynamically and maintains a hash of the "top 100". As
>>each entity is created, I search my hash for the entity with "lowest"
>>value, based on a number of elements in
Frank Bax wrote:
> Rather than create/store/sort many billion entities, my script creates
> these entities dynamically and maintains a hash of the "top 100". As
> each entity is created, I search my hash for the entity with "lowest"
> value, based on a number of elements in the hash; then "low" el
Rather than create/store/sort many billion entities, my script creates
these entities dynamically and maintains a hash of the "top 100". As each
entity is created, I search my hash for the entity with "lowest" value,
based on a number of elements in the hash; then "low" element gets replaced
w
> "Jeff" == Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
Jeff> Granted, I'm not an author, and I rarely (if ever) see my name
Jeff> misspelled, but as a matter of courtesy, I'd really appreciate seeing
Jeff> Damian Conway's name spelled properly, and Randal (L.) Schwartz's name
Jeff> spelle
ZHAO, BING wrote:
Hi:
I need to delete files older than one week old, I know how
to code that(with the help of many kind people on this list):
But it only happens when I run the program, there is a
chance I will not be running the program for more than a week. And the
d
15 matches
Mail list logo