"raptor" <[EMAIL PROTECTED]> wrote:
> but now I'm looking at these too...
> http://dev.perl.org/rfc/90.pod
> http://dev.perl.org/rfc/91.pod
> http://dev.perl.org/rfc/148.pod
>
> so may be what must be the order of passing the arguments and other stuff
> should be done via these proposed functions.
>
> PS. I was thinking of that before, what if we have something let's call it
> 'transform' for transformation of any structure to other structure.. but
as
> i thought it should combine in some way the features of
> switch,if-else,for/foeach, do, while, array/hash-slices, assignment
> ....etc.... .... oooops I'm talking about DWIM operator..... anyway... is
it
> possible to really add such "dwim" function/operator that can be modified
on
> the fly so that it suit all programmers tastes and don't make real
mess...")
The generalised version of these is here:
http://dev.perl.org/rfc/81.html
In particular, see this section:
http://dev.perl.org/rfc/81.html#JUSTIFICATION
This RFC suggests a syntax for list comprehension, which when used as a
slice index provides flexible data structure transformation.
Another useful transformation is provided by the cartesian product operator
described here:
http://dev.perl.org/rfc/205.html
HTH,
Jeremy