note
Anonymous Monk
Perl doesn't DWIM in:
<code>
sub add ($$) {$_[0] + $_[1]}
my @arr = (3, 4);
print add(@arry);
</code>
It issues a warning and prints 2, not the 7 I'd expect.
<p>
Perl doesn't DWIM in:
<code>
sleep 2.5;
</code>
<p>
You can tie some magical variables, and get the expected effects, but with other magical variables, no subroutines tied to them are ever called.
<p>
<code>
$ perl -wle 'print+(localtime())[5]'
105
</code>
C all over again.
<p>
<tt>brian</tt>, are you going to collect the results here, and give them to Larry before Perl6 comes out? ;-)
435338
435338
17