State of pseudo-hashes, typed lexicals

2001-09-10 Thread Edwin Günthner
Hi there, I am reading object oriented perl from Damian Conway (execellent book btw.) and he is using pseudo-hashes and typed lexicals. But he says that these features are experimental ... on the other hand, his book is some two years old, so I am wondering: Are pseudo-hashes and typed lexicals

Re: State of pseudo-hashes, typed lexicals

2001-09-10 Thread Edwin Günthner
Hello Michael, They are experimental, and it's not a good idea to rely on them in production code. In fact, pseudo-hashes are on their way out. Typed Sorry to hear that. I liked the idea to have something more efficient than hashes ... on the other hand it is apparent that implementing

Re: State of pseudo-hashes, typed lexicals

2001-09-10 Thread Edwin Günthner
Michael Fowler wrote: Tearing out the pseudohash code gives an across the board 10-15% gain in speed in basic benchmarks. That means if we didn't have pseudohashes, normal hashes would be just as fast as fully declared pseudohashes! So don't mourn their passing. But

Problem with inheritance

2001-09-06 Thread Edwin Günthner
Hi there, I have the following files: B\ MyClass.pm C\ DescendantOfMyClass.pm MyClass looks like this: package B::MyClass; ... and DescendantOfMyClass looks like this: package B::C::DescendantOfMyClass; use B::MyClass; @ISA = qw(B::MyClass); ... Well, and it simply

Re: removing spaces from the end of a string WITHOUT a REGEX

2001-08-30 Thread Edwin Günthner
Why not using chomp instead? from perlfunc: This safer version of chop removes any trailing string that corresponds to the current value of $/ ... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

where is croak coming from?

2001-08-30 Thread Edwin Günthner
Hi there, I am just wondering in one of the many man pages I can find out something about the croak function? I thougt: well, must be something built in like chop, chomp or so - but no, there is nothing in perlfunc about croak ... btw: same for BEGIN, END, CHECK. Where are those magical words

Using the B module?

2001-08-23 Thread Edwin Günthner
someone can tell me where I can find some SIMPLY examples/tutorials of how to use the B package - for example it would be really nice to see code that reads a perl script and then walks over the corresponding AST and prints out all the nodes of the AST. thx, edwin günthner -- To unsubscribe, e

magic import of extensions?

2001-08-07 Thread Edwin Günthner
Hi there, I am wondering if it is possible to create my own module and to allow programers to use it without any importing or so. For example, if MyPackage has subs like init, doThis, doThat - is it possible to have a script that looks like: scr.pl: init; doThis $someArg; doThat $anotherArg

Re: magic import of extensions?

2001-08-07 Thread Edwin Günthner
for them - they do not care what language is around those commands. Therefore accessing our subs should be as simple as possible for them. thx for the help, edwin günthner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]