Aion
view release on metacpan or search on metacpan
lib/Aion/Types.md view on Meta::CPAN
```perl
\\1 ~~ RefRef # -> 1
\1 ~~ RefRef # -> ""
\\1.3 ~~ RefRef[ScalarRef[Num]] # -> 1
\1.3 ~~ RefRef[ScalarRef[Num]] # -> ""
```
## GlobRef
The global.
```perl
\*A::a ~~ GlobRef # -> 1
*A::a ~~ GlobRef # -> ""
```
## ArrayRef`[A]
The arrays.
lib/Aion/Types.pm view on Meta::CPAN
The ref as ref.
\\1 ~~ RefRef # -> 1
\1 ~~ RefRef # -> ""
\\1.3 ~~ RefRef[ScalarRef[Num]] # -> 1
\1.3 ~~ RefRef[ScalarRef[Num]] # -> ""
=head2 GlobRef
The global.
\*A::a ~~ GlobRef # -> 1
*A::a ~~ GlobRef # -> ""
=head2 ArrayRef`[A]
The arrays.
[] ~~ ArrayRef # -> 1
{} ~~ ArrayRef # -> ""
t/aion/types.t view on Meta::CPAN
#
done_testing; }; subtest 'RefRef`[A]' => sub {
::is scalar do {\\1 ~~ RefRef}, scalar do{1}, '\\1 ~~ RefRef # -> 1';
::is scalar do {\1 ~~ RefRef}, scalar do{""}, '\1 ~~ RefRef # -> ""';
::is scalar do {\\1.3 ~~ RefRef[ScalarRef[Num]]}, scalar do{1}, '\\1.3 ~~ RefRef[ScalarRef[Num]] # -> 1';
::is scalar do {\1.3 ~~ RefRef[ScalarRef[Num]]}, scalar do{""}, '\1.3 ~~ RefRef[ScalarRef[Num]] # -> ""';
#
# ## GlobRef
#
# The global.
#
done_testing; }; subtest 'GlobRef' => sub {
::is scalar do {\*A::a ~~ GlobRef}, scalar do{1}, '\*A::a ~~ GlobRef # -> 1';
::is scalar do {*A::a ~~ GlobRef}, scalar do{""}, '*A::a ~~ GlobRef # -> ""';
#
# ## ArrayRef`[A]
#
# The arrays.
#
( run in 0.964 second using v1.01-cache-2.11-cpan-49f99fa48dc )