Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PERL6

Name: Anonymous 2007-09-26 6:20 ID:tc4AU1yb

pugs> my ($car, @cdr) = (1..10);
pugs> say "my other $car is a {@cdr}";
my other 1 is a 2 3 4 5 6 7 8 9 10

Name: Anonymous 2007-09-26 7:48 ID:Heaven

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.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List