in reply to Re: Two more Features Perl 5 Maybe Needs
in thread Five Features Perl 5 Needs Now
So ¥hr={} means $hr={} and analogous with €ar=[] but the handling is easier.
hope that's clearer ...--- New --- Internally ¥hr == $hr ¥hr{k1} == $hr->{k1} ¥hr{k1}=¥hr2 == $hr->{k1} = $hr2 keys ¥hr == keys %$hr keys ¥hr{k1}{k2} == keys %{ $hr->{k1}{k2} } print €ar[1] == print $ar->[1] print @€ar[1] == print @{ $ar->[1] }
Tomorrow I'll try to hack a codefilter as a proof of concept.
Actually if point 7 is realized, one don't really need point 6 any more ...
sub foo { return ( [], {} ) } my (€ar,¥hr) = foo();
But your right the first line was misleading! ... I got confused with the new idea of compability to perl6 syntax...but now I think that's far to complicated to achieve with the perl5 parser.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Two more Features Perl 5 Maybe Needs
by Jenda (Abbot) on Dec 23, 2008 at 16:45 UTC | |
by LanX (Saint) on Dec 23, 2008 at 19:13 UTC | |
by chromatic (Archbishop) on Dec 23, 2008 at 19:29 UTC | |
by LanX (Saint) on Dec 23, 2008 at 19:47 UTC | |
by chromatic (Archbishop) on Dec 24, 2008 at 03:39 UTC | |
| |
by Jenda (Abbot) on Dec 23, 2008 at 21:55 UTC | |
by LanX (Saint) on Dec 23, 2008 at 23:00 UTC |