blob: 5fd78099c0fea5e69fce86722d8cef6e24768e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
foreach (%h) {} foreach with a hash is usually an error
map { 'xxx' } %h a hash is not a valid parameter to function map
$xxx = ('yyy', 'zzz') context tuple(string, string) is not compatible with context scalar
@l ||= 'xxx' "||=" is only useful with a scalar
length @l never use "length @l", it returns the length of the string int(@l)
%h . 'yyy' context hash is not compatible with context string
'xxx' > 'yyy' you should use a string operator, not the number operator ">"
1 cmp 2 you should use a number operator, not the string operator "cmp" (or replace the number with a string)
|