3 ms·
Perl 5.18 may have the following: use mop; class Point { has $x = 0; has $y = 0; method clear { ($x, $y) = (0, 0) } } ref: https://github.co
by draegtun 14y ago
Perl 5.18 may have the following:
use mop;
class Point {
has $x = 0;
has $y = 0;
method clear { ($x, $y) = (0, 0) }
}
ref: https://github.com/stevan/p5-mop/blob/master/t/000-examples/001-basic-example.t https://github.com/stevan/p5-mop/blob/master/t/000-examples/...