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
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
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
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
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]
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
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
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
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]