Re: force using the version of a module

2009-12-26 Thread Jeff Peng
Peter Scott : % perldoc -f use use Module VERSION LIST use Module VERSION [...] If the VERSION argument is present between Module and LIST, then the "use" will call the VERSION method in class Module with the given version as an argumen

Re: force using the version of a module

2009-12-26 Thread Peter Scott
On Sun, 27 Dec 2009 00:02:24 +0800, Jeff Peng wrote: > The latest version of LWP::UserAgent (v5.834) has a method of > "local_address", which is needed by my software. > > The lower version of this module (for example, v5.824) doesn't have that > method. > > So how to force to use the latest vers

Re: Oracle DBI::ODBC and SELECT FOR UPDATE

2009-12-26 Thread Uri Guttman
> "TE" == Tony Esposito writes: TE> Has anyone successfully used, in Oracle, a 'SELECT ... FOR UPDATE' TE> using the Perl DBI:: ODBC? i can't answer that, but that is far from a question for the perl beginner's list. please post this in one of the many other places where you will likely

Oracle DBI::ODBC and SELECT FOR UPDATE

2009-12-26 Thread Tony Esposito
Has anyone successfully used, in Oracle, a 'SELECT ... FOR UPDATE' using the Perl DBI:: ODBC?

Re: Regex problem

2009-12-26 Thread Chris Charley
- Original Message - From: "Owen" Newsgroups: perl.beginners Hello Owen To check the date passed with a script, I first check that the date is in the format 20dd (20 followed by 6 digits exactly) But the regex is wrong, tried /^20\d{6}/,/^20\d{6,6}?/,/^20\d{6,}?/ and while a

Regex problem

2009-12-26 Thread Owen
To check the date passed with a script, I first check that the date is in the format 20dd (20 followed by 6 digits exactly) But the regex is wrong, tried /^20\d{6}/,/^20\d{6,6}?/,/^20\d{6,}?/ and while a 7 or lesser digit number fails, eg 2009101, a 9 digit number, like 200910103 does not fai

force using the version of a module

2009-12-26 Thread Jeff Peng
Hello, The latest version of LWP::UserAgent (v5.834) has a method of "local_address", which is needed by my software. The lower version of this module (for example, v5.824) doesn't have that method. So how to force to use the latest version of LWP::UserAgent in the perl script? Thanks. Merry Ho

Re: Help with Coding Style

2009-12-26 Thread Peter Scott
On Fri, 25 Dec 2009 16:57:04 +0100, Christoph Friedrich wrote: > I am new to Perl and I am not sure if my Coding Style is good. Could > some of you please check if my Coding Style is good or tell me what I > should change to get a good Coding Style? You can find 2 files of my > current project und