diff options
Diffstat (limited to 'perl_checker.src/test')
-rw-r--r-- | perl_checker.src/test/return_value.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl_checker.src/test/return_value.t b/perl_checker.src/test/return_value.t index cae8652..a781033 100644 --- a/perl_checker.src/test/return_value.t +++ b/perl_checker.src/test/return_value.t @@ -10,6 +10,10 @@ $xxx && yyy(); value is dropped /(.*)/; value is dropped +'xxx'; + +'xxx' if $xxx; + map { xxx($_) } @l; if you don't use the return value, use "foreach" instead of "map" $xxx = chomp; () context not accepted here |