Re: Komodo

2001-06-22 Thread Richard Hulse
Slw! Download ActiveState Perl and use OptiPerl www.xarka.com. It is faster, cheaper and has all the debugging stuff built in. regards, Richard At 12:47 22/06/2001 +0200, Aaron Craig wrote: >Has anyone tried the Komodo development environment from >ActiveState? Must you have ActiveStat

RE: directory listing to array

2001-06-08 Thread Richard Hulse
Thanks folks, this is ANOTHER module I'm going to start using. I have to say that this is a lot more fun than counting clock cycles, which was the last bench-marking I did a long, long time ago... regards, Richard At 19:53 7/06/2001 -0700, Peter Cornelius wrote: >Looking at the other postin

Re: directory listing to array

2001-06-07 Thread Richard Hulse
Since someone raised the general question of differences, which is faster? Randal's suggestion: my @result = <*.jpg>; or variations on: @files = grep /jpg/i, readdir DIR; regards, Richard

Re: perl compiler and editor for windows

2001-06-06 Thread Richard Hulse
My favorite text editor is notetab (www.notetab.com) and you happen to be able to run perl from it. I know it is not free but my favorite integrated tool is OptiPerl. www.xarka.com. Good value for $US59. I use this with ActiveState Perl and an NT Apache build. Regards, Richard At 22:05 6

Re: Overloading

2001-06-03 Thread Richard Hulse
Jeff, I have sussed it. Page 353 of the Camel book says of the += operator "the result is assigned to the left hand operand..." The result of the '+ 1' method call is that a number in $self is modified. The last line of the method is: $self->{_time_offset} = $offset; ...which is fine until t

Re: Overloading

2001-06-03 Thread Richard Hulse
Hi Jeff, Thanks. According to the man pages Perl automatically substitutes + for += without fallback. The problem is that even if I substitute the += method for + it still doesn't work. Somehow $obj gets turned into the offset amount. I have spent several hours with the debugger trying to fin

Overloading

2001-06-03 Thread Richard Hulse
I have a module which overloads a few operators snippet: use overload "+" => \&addoffset, "-" => \&subtractoffset, q("") => \&printit; the functions are called OK when I code: $obj + 7; print $obj; ...although I get a Perl warning saying addition is useless which I would expect