Re: First time Parsing XML

2005-04-02 Thread Todd W
"Gavin Henry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 02 Apr 2005 04:29, Johnstone, Colin wrote: > > Gidday All, > > > > I would like to use xml Parser to parse this chunk of xml (below) and > > return the business unit name and id attributes for each of the eleme

Re: Attempting OO with Perl - New() method in subclass not working

2005-04-02 Thread Randal L. Schwartz
> "Brad" == Brad Carlson <[EMAIL PROTECTED]> writes: Brad> Just to clarify, the only reason I don't need a new() method in the Brad> subclass is because any class-specific logic is contained in the _init() Brad> method for both parent and subclass. If there were no _init() method, Brad> then

Re: .pm and .pl files.

2005-04-02 Thread Randal L. Schwartz
> "Jay" == Jay Savage <[EMAIL PROTECTED]> writes: Jay> I respectfully disagree. I blame Richard Stallman for my habits, not Jay> Bill Gates, et. al. 'emacs test' when creating a file opens it in Jay> Text Fill, but 'emacs test.pl' when creating a file saves me 'M-x Jay> perl-mode' (or 'M-x Cp

Re: modules - lost again

2005-04-02 Thread Peter Rabbitson
> > And if I am, and specifying explicit imports for each module is beneficial > > - > > Not for reason of speed. For reason of maintainability. You should only > import names you are going to use, and then do so explicitly, so that a > maintenance programmer doesn't look at the program wonder

Re: modules - lost again

2005-04-02 Thread Peter Scott
On Sat, 02 Apr 2005 09:23:53 -0500, Peter Rabbitson wrote: > This one is about my Tools.pm which uses Exporter and delivers a set of 5- > 10 line subroutines for stupud tasks (number rounder, strip commas from > numbers, commify them back, customized html entity decoder etc etc etc). > What I am cu

Re: First time Parsing XML

2005-04-02 Thread Gavin Henry
On Saturday 02 Apr 2005 04:29, Johnstone, Colin wrote: > Gidday All, > > I would like to use xml Parser to parse this chunk of xml (below) and > return the business unit name and id attributes for each of the elements > where division id = '221' > > I have tried Why not try: http://search.cpan.or

Re: modules - lost again

2005-04-02 Thread Peter Rabbitson
> Examine your concept of "reside in". You appear to be confused with > modules that use the Exporter. You don't. I believe you'll find that > you use SomeOther::Module *before* using Configuration in the main program, > which means that the assignments haven't taken place yet. > A-ha! Some da