Re: [PBML] Help needed in recursion with objects in perl !

2010-08-06 Thread Randal L. Schwartz
> "Amit" == Amit Saxena writes: Amit> I am working on a tree implementation (with any number of parent Amit> and child nodes) in perl. Every node is defined as a object of a Amit> "Node" class which I have created as a ".pm" module. Unless this is for a student exercise, you probably just wa

Help needed in recursion with objects in perl !

2010-08-06 Thread Amit Saxena
Hi all, I am working on a tree implementation (with any number of parent and child nodes) in perl. Every node is defined as a object of a "Node" class which I have created as a ".pm" module. I have defined a method "getParentNodes" which returns reference to an array having all the (immediate) pa

Re: Wrong subclassing?

2010-08-06 Thread Shlomi Fish
On Friday 06 August 2010 11:51:02 Octavian Rasnita wrote: > Hi, > > I have a question regarding a set of modules that subclass each other, and > I hope it is appropriate for this group. > > Here is a test program (with no use strict and warnings for beeing > concise): > > # program.pl: > > #!/u

parallel::forkmanager queue implentation in perl

2010-08-06 Thread Ramprasad Prasad
Hello , I have process that picks up multiple files from a directory forks child processes and each child process works on a batch of files and finishes the task I am thinking of this Parent process finds all files in jobs directory , divide tasks into $MAXCHILD processes but not exceeding $MAXBAT

Wrong subclassing?

2010-08-06 Thread Octavian Rasnita
Hi, I have a question regarding a set of modules that subclass each other, and I hope it is appropriate for this group. Here is a test program (with no use strict and warnings for beeing concise): # program.pl: #!/usr/bin/perl use Third; Third->new->run; # Third.pm: package Third; use paren