Re: Validating Decimal Values

2005-11-30 Thread Xavier Noria
On Dec 1, 2005, at 8:21, Joel Divekar wrote: For eg. the decimal number will be as follows Max Size : 9.99 valid values : 3.00 or 745.15 or 21576.00 invalid values : 3.001 or 745.1555 or 215766.00 also 3..00 should be marked invalid. Looks like the validity depends on the digits around th

RE: Validating Decimal Values

2005-11-30 Thread Pant, Hridyesh
Try this if ($a=~/^\d{0,5}\.\d{0,2}$/) Regards Hridyesh -Original Message- From: Joel Divekar [mailto:[EMAIL PROTECTED] Sent: 01 December 2005 12:52 To: beginners@perl.org Subject: Validating Decimal Values Hi I am having a small program which parses data file. The data file contains

Validating Decimal Values

2005-11-30 Thread Joel Divekar
Hi I am having a small program which parses data file. The data file contains decimal values and I am not able to validate the decimal number. For eg. the decimal number will be as follows Max Size : 9.99 valid values : 3.00 or 745.15 or 21576.00 invalid values : 3.001 or 745.1555 or 215766.

RE: Open source IDE for Perl

2005-11-30 Thread Thomas Bätzler
Andrej Kastrin <[EMAIL PROTECTED]> asked: > And how to compile and execure Perl code on TextPad; have you > any link or tutorial? Just add perl.exe als a program in the Extras configuration section. If you delete the predefined entries for Java in there, you can run the Perl script in the current

Re: Reading xls file

2005-11-30 Thread Chris Devers
On Wed, 30 Nov 2005, Pant, Hridyesh wrote: > I want to store column data of xls file in array. > E.g. $array[0]=1st column of xls sheet. > $array[1]=2st column of xls sheet. > $array[2]=3st column of xls sheet. > ... > etc > > Can anybody help me... Probably, I'm sure someone could. What di

Reading xls file

2005-11-30 Thread Pant, Hridyesh
Hi, I want to store column data of xls file in array. E.g. $array[0]=1st column of xls sheet. $array[1]=2st column of xls sheet. $array[2]=3st column of xls sheet. ... etc Can anybody help me... Regards Hridyesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: perl and C

2005-11-30 Thread Paul Johnson
On Wed, Nov 30, 2005 at 04:46:16PM -, Dermot Paikkos wrote: > There are some functions in a C library that I would like to use and > I was wondering if it is possible to do so from perl. > > I started reading the perlxstut and this seems like the way forward > but I was hoping someone could

Re: File Test Question

2005-11-30 Thread jm
according to Programming Perl (p. 98)... -w = file is writable by effective uid/gid -s = file has nonzero size (returns size) -w only tells if the file's permissions allow it to be written to, has nothing to do with whether or not it already has data. save the return value of -s and check that v

RE: File Test Question

2005-11-30 Thread Timothy Johnson
I don't think the -x tests mean what you think they mean. >From "perldoc -f -x": -r File is readable by effective uid/gid. -w File is writable by effective uid/gid. -x File is executable by effective uid/gid. -o File is owned by effective uid. -R File is

Re: File Test Question

2005-11-30 Thread Wiggins d'Anconia
Dave Adams wrote: > *My Code:* > > my $logfile = "logfile_with_content"; > if (-w $logfile) { > print ("True - file exists but empty"); > } > if (-s $logfile) { > print ("True - file exist and has content"); > } > > *My Output:* > > True - file exists but empty True - file exist and has

File Test Question

2005-11-30 Thread Dave Adams
*My Code:* my $logfile = "logfile_with_content"; if (-w $logfile) { print ("True - file exists but empty"); } if (-s $logfile) { print ("True - file exist and has content"); } *My Output:* True - file exists but empty True - file exist and has content *My Question:* Why do both test ev

Re: perl and C

2005-11-30 Thread JupiterHost.Net
Dermot Paikkos wrote: Hi, Hello, There are some functions in a C library that I would like to use and I was wondering if it is possible to do so from perl. Yes and it can be quite easy :) search.cpan.org for Inline::C From Damian Conway's most excellent (translated "go buy it now!!!")

perl and C

2005-11-30 Thread Dermot Paikkos
Hi, There are some functions in a C library that I would like to use and I was wondering if it is possible to do so from perl. I started reading the perlxstut and this seems like the way forward but I was hoping someone could confirm it for me before I throw myself completely into it. Can you

RE: Open source IDE for Perl

2005-11-30 Thread Cintron, Jose J.
Try Open Perl IDE http://open-perl-ide.sourceforge.net/ +-- | José J. Cintrón +-- > -Original Message- > > which is yours "best" open source IDE for Perl. I use SciTE under > > Linux, but I'm a little confu

Re: Web hosting companies that offer Perl and MySQL or Postgres?

2005-11-30 Thread JupiterHost.Net
Randall Perry wrote: Sorry, I know this is off (DBI) topic, but it does relate to Perl and a database. I'm about to start developing an app with Perl DBI with the thought that eventually I'd like to put the app on the web - for which I plan to get a website hosting company, like Yahoo or whate

Re: Open source IDE for Perl

2005-11-30 Thread The Ghost
which is yours "best" open source IDE for Perl. I use SciTE under Linux, but I'm a little confused on Windows. Which do you prefer? I always suggest jEdit: http://jedit.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Open source IDE for Perl

2005-11-30 Thread Octavian Rasnita
> > >I use TextPad. > > > >Teddy > > > > > > > > > And how to compile and execure Perl code on TextPad; have you any link > or tutorial? > It is simple to configure TextPad to create menus that allow running the current perl file. You can also define hotkeys for those menu items, you can run the p

Re: Open source IDE for Perl

2005-11-30 Thread Dan Klose
> Dear all, > which is yours "best" open source IDE for Perl. I use SciTE under Linux, > but I'm a little confused on Windows. Which do you prefer? > >>Best, Andrej I use emacs on Mac, Linux and Windows. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Open source IDE for Perl

2005-11-30 Thread Andrej Kastrin
Octavian Rasnita wrote: From: "Andrej Kastrin" <[EMAIL PROTECTED]> Dear all, which is yours "best" open source IDE for Perl. I use SciTE under Linux, but I'm a little confused on Windows. Which do you prefer? Best, Andrej I use TextPad. Teddy And how to compile and execu

Re: Open source IDE for Perl

2005-11-30 Thread Dermot Paikkos
On 30 Nov 2005 at 14:33, Andrej Kastrin wrote: > which is yours "best" open source IDE for Perl. I use SciTE under Linux, > but I'm a little confused on Windows. Which do you prefer? > vi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Open source IDE for Perl

2005-11-30 Thread Octavian Rasnita
From: "Andrej Kastrin" <[EMAIL PROTECTED]> > Dear all, > > which is yours "best" open source IDE for Perl. I use SciTE under Linux, > but I'm a little confused on Windows. Which do you prefer? > > > Best, Andrej I use TextPad. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Open source IDE for Perl

2005-11-30 Thread Xavier Noria
On Nov 30, 2005, at 14:33, Andrej Kastrin wrote: Dear all, which is yours "best" open source IDE for Perl. I use SciTE under Linux, but I'm a little confused on Windows. Which do you prefer? Eclipse + EPIC is excellent and multiplatform. -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTE

Open source IDE for Perl

2005-11-30 Thread Andrej Kastrin
Dear all, which is yours "best" open source IDE for Perl. I use SciTE under Linux, but I'm a little confused on Windows. Which do you prefer? Best, Andrej -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to interupt a running program

2005-11-30 Thread S, karthik \(IE03x\)
See my comments. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zentara Sent: Monday, November 21, 2005 7:38 PM To: beginners@perl.org Subject: Re: how to interupt a running program On Mon, 21 Nov 2005 10:32:47 +0530, [EMAIL PROTECTED] (karthik S) wrot