Subject: | Can’t distinguish list from array ref |
These two subs return different values, but re.pl doesn’t let you
distinguish them because it automatically converts lists into arrays:
$ sub foo { return 1, 2, 3 }
$ sub bar { return [1, 2, 3] }
$ foo
$ARRAY1 = [
1,
2,
3
];
$ bar
$ARRAY1 = [
1,
2,
3
];