Consider: my $foo of Num where { 0 <= $^n < 10 };
Is the following also valid? my $foo where { 0 <= $^n < 10 }; Or does that have to be like this? my $foo of Scalar where { 0 <= $^n < 10 }; And can $_ be used instead of $^n? Juerd
Consider: my $foo of Num where { 0 <= $^n < 10 };
Is the following also valid? my $foo where { 0 <= $^n < 10 }; Or does that have to be like this? my $foo of Scalar where { 0 <= $^n < 10 }; And can $_ be used instead of $^n? Juerd