AW: Perl file with arguments

2010-06-09 Thread Thomas Bätzler
Gopal Karunakar asked: > How can i declare a simple perl script file which will take > arguments from the user? an example will be take two numbers and > give the sum as output. Do you want to pass the arguments on the command line or prompt for them after starting your script? In the firs

AW: Perl rounding errors?

2010-04-26 Thread Thomas Bätzler
Rob Coops asked: > I am just wondering if I sumbled upon an error in perl an error in my > logic or somehtign else see the below perl one liners > > $ perl -e '$n = 0.945; $r = sprintf("%.2f", $n); print "$r\n";' > 0.94 Short answer: You shouldn't use floating point numbers for financial calcul

Re: AW: Perl get host's IP

2010-04-14 Thread Peng YH
Thomas Bätzler: asked: Is there a general way to get linux OS's bound ip addresses? for example, the IP on eth0, eth1 etc. Thanks. http://search.cpan.org/~lds/IO-Interface-1.05/Interface.pm could be a "good enough" solution for you. Thanks. Looks a good solution for my question. Peng.

AW: Perl get host's IP

2010-04-14 Thread Thomas Bätzler
asked: > Is there a general way to get linux OS's bound ip addresses? for > example, the IP on eth0, eth1 etc. Thanks. http://search.cpan.org/~lds/IO-Interface-1.05/Interface.pm could be a "good enough" solution for you. I say "good enough" since it gives you all of the info that you'll get fr

AW: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-06 Thread Thomas Bätzler
alekto asked: > I manage to generate the array from the input file, but it seems like > there is something wrong with my subroutine at the end, I have been > using the examples at cpan.org as an templat for this subroutine. > Following is the error msg, as well as the complete script. > hostname$

Re: AW: Perl appears to be introducing whitespace when reading .txt files

2010-04-01 Thread Shlomi Fish
On Thursday 01 Apr 2010 12:25:51 Thomas Bätzler wrote: > Doug Cacialli wrote: > > The unicode / UTF16 issues presented by Thomas and Dr. Rudd are a > > little beyond me. I'm reading up now, but can someone shed some > > light? > > Let's see if I can quickly summarize: > - text is made up from le

AW: Perl appears to be introducing whitespace when reading .txt files

2010-04-01 Thread Thomas Bätzler
Doug Cacialli wrote: > The unicode / UTF16 issues presented by Thomas and Dr. Rudd are a > little beyond me. I'm reading up now, but can someone shed some > light? Let's see if I can quickly summarize: - text is made up from letters (characters). - a computer doesn't "know" letters, it only know

AW: Perl appears to be introducing whitespace when reading .txt files

2010-03-31 Thread Thomas Bätzler
Doug Cacialli wrote: > I'm completely baffled by this and not entirely sure where to start. > > I have a plain text file, testfile.txt, which contains a single line: Could this be an encoding issue? How big is that file? Larger than 18 or 19 bytes? If yes, http://perldoc.perl.org/perlunicode

Re: AW: Perl CGI Incremental find

2009-11-17 Thread Dave Tang
On Tue, 17 Nov 2009 19:20:42 +1000, Thomas Bätzler wrote: Hi, Jeff Pang wrote: On Nov 17, 2009, Dave Tang wrote: > Is it possible to implement an incremental find* feature on a Perl CGI > page? I'm running Apache2 with mod_perl on linux. > > For example, if I have a list of stuff (A, Aa,

AW: Perl CGI Incremental find

2009-11-17 Thread Thomas Bätzler
Hi, Jeff Pang wrote: > On Nov 17, 2009, Dave Tang wrote: > > Is it possible to implement an incremental find* feature on a Perl CGI > > page? I'm running Apache2 with mod_perl on linux. > > > > For example, if I have a list of stuff (A, Aa, B, Bb, C, CA, etc. stored > > in a file or database)

Re: AW: perl document

2009-10-26 Thread Shlomi Fish
On Monday 26 Oct 2009 10:05:05 Thomas Bätzler wrote: > mahesh bhasme asked: > > I am new to perl. From where I get the basic perl document > > Depends on your distribution, really. If you're on Windows and using the > ActiveState Perl distribution, look for the html folder in your Perl > instal

AW: perl document

2009-10-26 Thread Thomas Bätzler
mahesh bhasme asked: > I am new to perl. From where I get the basic perl document Depends on your distribution, really. If you're on Windows and using the ActiveState Perl distribution, look for the html folder in your Perl installation directory. On Unix, you might want to try perldoc or man

AW: Perl DBI error

2009-07-07 Thread Thomas Bätzler
Dave Tang asked: > I am having a problem with binding a variable when executing on a DBI > object. [...] "You can only reliably bind values, not field or table names. Database that plan query execution won't accept this, because they need table and field names to make their query execution p

AW: perl

2009-03-17 Thread Thomas Bätzler
Sharan Basappa wrote: > Clearly I did not communicate properly. So what I am looking is for > some support to do some GUI stuff. The idea is take information from > text and show it in the form a waveform. This will help a lot since > it is rather difficult to go through the text file. If you don

AW: perl 5.8.0 for AIX 4.3.3

2002-09-24 Thread Angerstein
No, there are no binaries of 5.8. Today, I not in mind to build it myself. Have to code a little. > -Ursprüngliche Nachricht- > Von: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] > Gesendet am: Donnerstag, 26. September 2002 07:50 > An: Perl beginners > Betreff: Re: perl 5.8.0 for AIX 4

RE: AW: Perl 5.8.0

2002-09-03 Thread Jason Frisvold
;Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." -- Albert Einstein [1879-1955] -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 9:12 AM To: perl beginners Subject: Re: AW: Perl

Re: AW: Perl 5.8.0

2002-09-03 Thread David T-G
Jason, et al -- ...and then Angerstein said... % % full 64Bit support Also full threading, I hear, though I think that those two are the real meat of the upgrade. When I asked this question recently it basically boiled down to "if you're happy with 5.6.1 then just stick with it" and that's wha

AW: Perl 5.8.0

2002-08-30 Thread Angerstein
full 64Bit support > -Ursprüngliche Nachricht- > Von: Jason Frisvold [mailto:[EMAIL PROTECTED]] > Gesendet am: Donnerstag, 29. August 2002 23:02 > An: [EMAIL PROTECTED] > Betreff: Perl 5.8.0 > > Ok, I'm a bit behind the times... :-) > > What are the major advantages (if any) to moving to

AW: Perl Array Question

2002-08-01 Thread Theuerkorn Johannes
- From: "Theuerkorn Johannes" <[EMAIL PROTECTED]> To: "'Connie Chan'" <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 7:19 PM Subject: AW: Perl Array Question Hi Connie, First of all thank you for your Help! OK, that would work, but I have runtime vari