Putting the braces outside the data type indicator is braindead and reeks of PHP. There's a good reason shells use ${var}; it makes the interpolation simpler to understand because there's only one character that delimits interpolated values. (Or in Perl's case, three, but that's another gripe for another thread.)
>>7
Not to mention I usually want to print a variable between braces. Another option would be to ONLY accept braces for interoplation, then support any expression inside, kind of like Ruby and unlike Python 3000's format which fails.
sub car(@){return$_[0]}
sub cdr(@){shift;return\@_}
my @list=1..10;
say "my other ${\(car @list)} is a @{\@{(cdr @list)}}";
Name:
Anonymous2007-09-26 10:42 ID:oGfXeZQX
>>11
It looks like shit
It's still Perl
And Perl 6 is not getting released before Duke Nukem Forever
But at least it's better than a 15 years old C faggot writing his OMG OPTIMIZED library for games using inline assembly and low-level API calls he'll never finish.
Name:
Anonymous2007-09-26 11:17 ID:sKKRBU2+
>>12
I think that's Perl5. Perl6 gets real parameter passing (haha, wtf? now?)
Name:
Anonymous2007-09-26 12:21 ID:mPiS8Dqr
(haha, wtf? now?)
Needed because
my $self = shift;