#!perl
use
strict;
{
method with_space (
$this
:
$that
) {
return
(
$this
,
$that
);
}
}
is_deeply [ My::Obj->with_space (1) ], [
'My::Obj'
, 1 ],
'space between invocant name and colon should parse'
;
__END__
#!perl
use
strict;
{
method with_space (
$this
:
$that
) {
return
(
$this
,
$that
);
}
}
is_deeply [ My::Obj->with_space (1) ], [
'My::Obj'
, 1 ],
'space between invocant name and colon should parse'
;
__END__