Hi there,
Where can i find a perl code that translate numbers
to words ?, like 100.00 for "one hundred ..."
I need it to glue it with some other code.
Thanks..
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.y
PerlDiscuss - Perl Newsgroups and mailing lists <[EMAIL PROTECTED]>
wrote:
:
: Hi,
: I'm new to Perl and I'm trying to excute/call a perl program from
: Perl Script in an ASP page. I've loaded ActivePerl v5.6 on my
: Microsoft Win2000 webserver and I can execute lots of Perl code
: in my ASP pages
Thanks Kevin for pointing out the Cookbook receipe. I dug out my Perl
Cookbook, 2nd edition. The "How to modify a file in
place without a temporary file" is still in Chapter 7, but it's now
receipe 17.
The discussion for this receipe is very interesting. I'm not sure if it's
legal to quote t
Thanks for the help. I just got back on-line. I'll give these a try.
Thanks again !
"Randy W. Sims" <[EMAIL PROTECTED]>
01/25/2004 03:19 PM
To
Jan Eden <[EMAIL PROTECTED]>
cc
[EMAIL PROTECTED], Perl Lists <[EMAIL PROTECTED]>
Subject
Re: How to put a variable value into a text file
On
On Sun, Jan 25, 2004 at 01:59:30PM -0500, Kevin Old ([EMAIL PROTECTED]) wrote:
> Hello everyone,
>
> I have a two sets of code that I'd like to know which one is "fastest",
> so I turned to the Benchmark module to help solve the mystery. My code:
>
> #!/usr/bin/perl
>
> use warnings;
> use stri
Thanks a ton to all.
On Sat, 24 Jan 2004, drieux wrote:
>
> On Jan 23, 2004, at 5:24 PM, wolf blaum wrote:
>
> > For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January
> > 2004 17:52
> > may have been monitored or recorded as:
> >
> >> i would like to quickly append a string to a
On 1/25/2004 3:02 PM, Jan Eden wrote:
Hi Stuart,
@testarray gets the content of testmessage.txt, which contains the string '$name'. You cannot manipulate this string by setting the variable $name. You could do:
@testarray =~ s/\$name/$name/g;
which will replace the literal string '$name' using y
On Sun, 2004-01-25 at 14:33, [EMAIL PROTECTED] wrote:
> Hi all:
>
> I'm trying to put a variable value into a text file. I've tried a few
> things with no success.
>
> Anyone know how to do this ? Is it doable ? I'm pretty sure I read how
> to do this somewhere, so I'm about to hit the Perl
Hi Stuart,
@testarray gets the content of testmessage.txt, which contains the string '$name'. You
cannot manipulate this string by setting the variable $name. You could do:
@testarray =~ s/\$name/$name/g;
which will replace the literal string '$name' using your variable's content.
I am just a
Hi,
I'm new to Perl and I'm trying to excute/call a perl program from Perl
Script in an ASP page.
I've loaded ActivePerl v5.6 on my Microsoft Win2000 webserver and I can
execute lots of Perl code in my ASP pages with no problem, but I need to
call an external program and don't know the correct syst
Hi all:
I'm trying to put a variable value into a text file. I've tried a few
things with no success.
Anyone know how to do this ? Is it doable ? I'm pretty sure I read how
to do this somewhere, so I'm about to hit the Perl books to see if I can
find it.
Any help will be appreciated.
He
Hello everyone,
I have a two sets of code that I'd like to know which one is "fastest",
so I turned to the Benchmark module to help solve the mystery. My code:
#!/usr/bin/perl
use warnings;
use strict;
use Benchmark qw( timethese cmpthese);
my $string = '01/23/2004';
my $x = 3;
my $r = timeth
hehe
thanks, i really tried a lot of stuff.. but i didn't figure out the @{}
operator... :)
It worked! ;)
Thanks,
Pedro
On 25 de jan de 2004, at 15:55, drieux wrote:
On Jan 25, 2004, at 7:47 AM, Pedro Miguel Freire Custódio wrote:
[..]
sub _init {
my $self = shift;
$self->{OBJECT} = ("xpto1",
On Jan 25, 2004, at 7:47 AM, Pedro Miguel Freire Custódio wrote:
[..]
sub _init {
my $self = shift;
$self->{OBJECT} = ("xpto1","xpto2"); ---> THE PROBLEM! It
only stores xpto2
if (@_) {
my %extra = @_;
@$self{keys %extra} = values %extra;
}
}
And when i try to use this method:
Hi,
this is probably a stupid question. The question is that I want a
particular class of objects to have several attributes, one of them a
list (array), the problem is that I can't get it to work, it only
stores the last value, and when I try to join another array it doesn't
work. If somebod
On Sat, Jan 24, 2004 at 10:14:24PM -0700, danield ([EMAIL PROTECTED]) wrote:
> Hello all,
>
> Thanks to Charles and Tim, I have advanced to the final step with my
> script. After the script verifies that there is line (Summary Log...)
> and that the log is from correct year and month. I want it to
Hi, I'm getting an error when trying to install Text::Diff with the CPAN module. The
specific error is:
*snip*
Checking if your kit is complete...
Looks good
Warning: prerequisite Algorithm::Diff 0 not found.
Error: Unable to locate installed Perl libraries or Perl source c
Hi,
Thanks for your help
I've tried to use your second example in the following way:
Instead of xterm I tried to invoke some other script:
pid1 = open(PH, "my_perl_script |") or warn $!;
The my_perl_script refused to die. I still run when the program end?
Any ideas?
Igor
-Original Messag
Charles Lu <[EMAIL PROTECTED]> wrote:
:
: If I want to randomly generate a dice (4 side) roll, I can use
: the following expression:
:
: $roll = 1 + int( rand(4));
:
: This assumes that every side of this dice has equal chance of
: being rolled (0.25). Thats easy. Now What if I say, that th
19 matches
Mail list logo