News for hackers. Stuff that matters.
Re:Why Did I Choose Perl When Building Crowdtilt? by thecoffman on Friday August 31, 2012 @07:20PM (#4462112)
The sigils make variable interpolation easier only in the most generic case "interpolate $me". Anything more sophisticated requires a temporary variable.
Re:Why Did I Choose Perl When Building Crowdtilt? by draegtun on Saturday September 01, 2012 @07:04AM (#4463366)
You can avoid using temporary variables with the @{[...]} and ${\...} idioms:

  my $x = 1;

  say "$x + 1 = @{[ $x + 1 ]}"; 

  sub plus1 { $_[0] + 1 }

  say "$x + 1 = ${\plus1($x)}";
Re:Why Did I Choose Perl When Building Crowdtilt? by raiph on Saturday September 01, 2012 @04:44AM (#4463132)
I am not especially enamored of variable interpolation, but for those that are, Perl 6 does a much cleaner job than Perl 5 imo.
Re:Why Did I Choose Perl When Building Crowdtilt? by hobbified on Wednesday September 05, 2012 @05:25PM (#4481542)
Well... arguably they make it easier in the half-dozen simplest cases. Which just happen to be what's needed 90% of the time.