http://qs1969.pair.com?node_id=578706


in reply to If I was forced to program in another language, the Perl language feature I would miss most would be:

Probably the ability to do something stupid like

#!/usr/bin/perl -w use strict; my $function = sub { @_ = ( 1, 2, 3, 4, qw/5 6 7 8 9/, ); do { next if $_ % 2; eval { $_ = @_[ 0 .. $_ ] }; print <<IT $_ IT } for @_; }; $function->();