Pod Usage Example

2008-12-22 Thread Kelvin Philip
Hi, Would someone guide me with a simple example for perl documentation using Pod :: Usage? Regards, Kelvin Philip

Re: 2 questions please, one on scope and one on regex

2008-12-22 Thread John W. Krahn
Eric Krause wrote: Hello all, Hello, I have two quick questions that I would love some help on. I have looked at the manual (Programming Perl) and I didn't get it, hence my email. Question 1 - How can I make variables in a function (subroutine) global (accessible from other functions)? A

Re: HTML Stipper with an option for directories and multiple files

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 13:59 -0800, bdy wrote: > On Nov 18, 9:34 am, bdy120...@gmail.com (Bdy) wrote: > > Does any one know if there is a HTML stripper module that contains an > > option to strip multiple files across multiple directories. > > > > Having a helluva time finding one and getting the st

Re: 2 questions please, one on scope and one on regex

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 15:18 -0700, Eric Krause wrote: > Hello all, > I have two quick questions that I would love some help on. I have looked > at the manual (Programming Perl) and I didn't get it, hence my email. > > Question 1 - How can I make variables in a function (subroutine) global > (acc

Re: HTML Stipper with an option for directories and multiple files

2008-12-22 Thread bdy
On Nov 18, 9:34 am, bdy120...@gmail.com (Bdy) wrote: > Does any one know if there is a HTML stripper module that contains an > option to strip multiple files across multiple directories. > > Having a helluva time finding one and getting the strippers and > parsers to work as I'd like them to. > > T

Re: Perl garbage collector

2008-12-22 Thread Patrick Kirsch
Jay Savage schrieb: > Hi Patrick, > > This is hardly a beginner question, and as such is a bit out of scope > for this list. If you're really interested in Perl internals, you'll > probably want to check out the alt.lang.perl.misc newsgroup. > Yes, you're right. I thought a couple of people did

2 questions please, one on scope and one on regex

2008-12-22 Thread Eric Krause
Hello all, I have two quick questions that I would love some help on. I have looked at the manual (Programming Perl) and I didn't get it, hence my email. Question 1 - How can I make variables in a function (subroutine) global (accessible from other functions)? Question 2 - I am trying to con

Re: Perl garbage collector

2008-12-22 Thread Patrick Kirsch
Mr. Shawn H. Corey schrieb: > I did not expect this behaviour either. I would think it would give > none back or most of it; there would be some overhead. > > Question : Are you having a problem with memory or is this just to > satisfy your curiosity? > Yes, I do have a problem with that situa

Re: Perl DBI connect from Windows

2008-12-22 Thread R. Hicks
MGautam wrote: Hi, I want to connect to a "Oracle SQL Developer" with perl (running on windows). I tried something like, use DBI; $db = "database1"; $host = "10.0.0.1:1433"; $user = "username"; $password = "password"; my $dbh = DBI->connect ("DBI:Oracle:database=$db:host=$host",

Re: tough combination problem

2008-12-22 Thread Stealth
On Monday 22 December 2008 12:28:09 pm ankur wrote: > I have to parse a test file which can have multiple variable type > which is of following type > > VAR1 = 1..10 > VAR2 = 23..90 > VAR3 = A,B,C > > > So any no of variable and they can have any possible no of ranges

tough combination problem

2008-12-22 Thread ankur
I have to parse a test file which can have multiple variable type which is of following type VAR1 = 1..10 VAR2 = 23..90 VAR3 = A,B,C So any no of variable and they can have any possible no of ranges so i have to generate all possible test cases out of this like one c

Re: Perl garbage collector

2008-12-22 Thread Owen
> This is hardly a beginner question, and as such is a bit out of scope > for this list. If you're really interested in Perl internals, you'll > probably want to check out the alt.lang.perl.misc newsgroup. comp.lang.perl.misc might be better. I think Randal S is the only one to look at the alt

Re: Perl garbage collector

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 15:02 -0500, Jay Savage wrote: > If you're really interested in Perl internals, you'll > probably want to check out the alt.lang.perl.misc newsgroup. Perl.org maintains a number of mailings list; one of the perl-porters http://lists.cpan.org/showlist.cgi?name=perl5-porters is

Re: Perl garbage collector

2008-12-22 Thread Jay Savage
On Mon, Dec 22, 2008 at 12:36 PM, Patrick Kirsch wrote: > Mr. Shawn H. Corey schrieb: >> On Mon, 2008-12-22 at 18:10 +0100, Patrick Kirsch wrote: >> >>> Is there a possibility to influence it, to free memory (in the sense >>> of >>> give it back to the OS)? >>> >>> >> >> Does your OS have a functi

Re: Perl garbage collector

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 18:36 +0100, Patrick Kirsch wrote: > I'm using: Linux 2.6.27.6 #2 SMP x86_64; Distribution: OpenSUSE 11.0 . > In my opinion the Linux kernel is/should be able to rearrange freed > memory between processes (I think e.g. of the slab). > > But let me show another example: > $foo

Re: Perl garbage collector

2008-12-22 Thread Patrick Kirsch
Mr. Shawn H. Corey schrieb: > On Mon, 2008-12-22 at 18:10 +0100, Patrick Kirsch wrote: > >> Is there a possibility to influence it, to free memory (in the sense >> of >> give it back to the OS)? >> >> > > Does your OS have a function that allows processes to return memory to > it? Many do

Re: Perl garbage collector

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 18:10 +0100, Patrick Kirsch wrote: > Is there a possibility to influence it, to free memory (in the sense > of > give it back to the OS)? > Does your OS have a function that allows processes to return memory to it? Many do not. Most of the time, when a process frees memory

Perl garbage collector

2008-12-22 Thread Patrick Kirsch
Hi List, does anybody has deep information on how the garbage collector works in Perl? Is there a possibility to influence it, to free memory (in the sense of give it back to the OS)? Let me show: { my $foo = 'X' x 1; getc; } undef $foo; my $foo = ""; getc; At the first prompt

Re: trying to understand a line of perl cookbook

2008-12-22 Thread Chas. Owens
On Mon, Dec 22, 2008 at 06:49, RP wrote: > I am new to perl having basic idea about the programming and scripting > language, so I am learning Perl through Perl Cookbook, 2nd edition. > > on page 118, (receipe 4.4 Implementing Sparse Array), Here is one > statement. > > Using a hash representation

Re: trying to understand a line of perl cookbook

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 03:49 -0800, RP wrote: > Question: I am not able to understand the statement -"@fake_array > { sort {$a <=> $b} keys %fake_array }". > I understood that we are sorting the keys of a hash %fake_array. But > what is the meaning of @fake_array here??? > > Appreciate your help to

trying to understand a line of perl cookbook

2008-12-22 Thread RP
I am new to perl having basic idea about the programming and scripting language, so I am learning Perl through Perl Cookbook, 2nd edition. on page 118, (receipe 4.4 Implementing Sparse Array), Here is one statement. Using a hash representation, you should instead do either this to process element

Re: Perl DBI connect from Windows

2008-12-22 Thread Octavian Rasnita
From: "ficovh" You need install the Oracle Perl DBD driver in order to connect to Oracla DB http://search.cpan.org/~pythian/DBD-Oracle-1.22/Oracle.pm In windows use the Perl Package Manager for install it. As far as I know, if using perl 5.10.0, there is no a ppm package that offers the Ora