in reply to Perl oddities
Perl doesn't DWIM in:
It issues a warning and prints 2, not the 7 I'd expect.sub add ($$) {$_[0] + $_[1]} my @arr = (3, 4); print add(@arry);
Perl doesn't DWIM in:
sleep 2.5;
You can tie some magical variables, and get the expected effects, but with other magical variables, no subroutines tied to them are ever called.
C all over again.$ perl -wle 'print+(localtime())[5]' 105
brian, are you going to collect the results here, and give them to Larry before Perl6 comes out? ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl oddities
by TimToady (Parson) on Mar 01, 2005 at 20:00 UTC | |
Re^2: Perl oddities
by merlyn (Sage) on Mar 01, 2005 at 19:41 UTC | |
by Limbic~Region (Chancellor) on Mar 01, 2005 at 19:46 UTC | |
by Anonymous Monk on Mar 02, 2005 at 13:25 UTC | |
Re^2: Perl oddities
by itub (Priest) on Mar 01, 2005 at 15:55 UTC | |
Re^2: Perl oddities
by jplindstrom (Monsignor) on Mar 01, 2005 at 20:55 UTC |
In Section
Meditations