| kurila119delta - what is new for Perl Kurila 1.19 |
local does not set the operand to undefSTDOUT, STDERR, STDIN renamed to $^STDOUT, $^STDERR, $^STDIN
kurila119delta - what is new for Perl Kurila 1.19
This document describes differences between Perl Kurila 1.18 and Perl Kurila 1.19
Subroutines can be used as l-values.
Subs declared using a formal paramter defintion like
sub foo( = $x ) { ... }
foo() = "value";
If the assignment is optional the sub can be used in combination with a operator with modifies its argument. For example:
sub foo( ?= $x ) { ... }
foo() += 3;
This will first call foo twice, once without $x and with
$^is_assignment set to false, then again with the computed value
for $x and with $^is_assignment set to true.
Intuitive syntax for setting values using subroutines.
Subroutines can have formal parameters like sub foo($x, $y) or sub
foo($x, @< $y). Actual parameters are mapped to formal parameters
similar pattern matching. The number of actual parameters is checked at
compile to match the number parameters expected.
Expressive formal parameters. Allows compile-time argument checking.
local does not set the operand to undefUsing local does automaticly reset the operand to undef.
Allows local to be used on values which should not be reset to undef.
STDOUT, STDERR, STDIN renamed to $^STDOUT, $^STDERR, $^STDINThe standard file handle STDOUT, STDERR, STDIN are renamed to $^STDOUT, $^STDERR and $^STDIN
Reduce the use of globs.
Documentation has not been updated for many of the changes for kurila.
Assigning some value to a part of itself behaves unexpected.
Perl Kurila has only been tested/build for x86_64-linux-gnu-thread-multi platform.
The INSTALL file for how to build Perl Kurila.
The README file for general stuff.
The Artistic and Copying files for copyright information.
Written by Gerard Goossen <gerard@tty.nl>.
| kurila119delta - what is new for Perl Kurila 1.19 |