- or download this
use v5.20;
use experimental 'signatures';
...
ref($self)->new($self->y, $self->x);
}
}
- or download this
my Foo $foo = Foo->new(...);
- or download this
sub foo (Int $bar, Str $baz) {
...;
}
- or download this
sub foo {
my Int $bar = $_[0];
...
die "..." if @_ > 2;
...;
}
- or download this
my Foo $x = $y;
- or download this
"Foo"->CHECK_SCALAR(\$newvalue);
Foo()->CHECK_SCALAR(\$newvalue);
- or download this
sub UNIVERSAL::CHECK_SCALAR (Str $class, ScalarRef $sref) {
require Scalar::Util;
...
Carp::croak("...");
}
}