hi,
Two things i think is good to have it :
1. ALIAS keyword.
- first reason is 'cause many people don't know that this is possible.. at
least any newscommer and it will help not to forgot that it exist :").
- Code become more readable.
- can be Overloaded
- the syntax for aliasing can become reicher :")
2. Hash-reg-ex-slice
%hash{/\d*/}
instead of :
grep {/\d*/} keys %hash
%hash{/\d*/} = ();
%hash{/\d*/} = @list;# pump the @list values into %hash values (keys stay
the same)
- espesialy usefull with DBM
3. For this I'm not totaly sure, but it comes to my mind.... many modules
uses notation like this to pass params i.e.
someFunc ( -param1 => 'blah', param2 => 'xxx' .....)
Why not have %_ in our case we have the following elements :
%_{'-param1'} = 'blah'
%_{'param2'} = 'xxx'
If in object/class contrext (can this be checked in some way) first element
goes to :
%_{self}
note : all references goes directly i.e. : my %_ = map { $_ unless ref }
@_;
Also there is no need the HASH to be generated until we use it for the first
time, for speedup !?! is this possible.
I think if it is not hard for implementation it is nice shortcut.
=====
iVAN
[EMAIL PROTECTED]
=====