In code like above if f() returns more than 3 or less than 3 values perl would silently disregard this and go on doing its business. This cannot be checked at comile time but is there any way to get at least a warning about such cases in run time? Can that maybe turned into a FATAL error? If that could be done, then probably it would also work on the following code as well:my ($x, $y, $z) = f();
my ($x, $y, $z) = @_;
In reply to Incorrect number of values in list assignment by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |