withref($_[0]) ? $params = shift : $params = {@_};
$params = ref($_[0]) ? shift : {@_};
Dave.
update:
Note that your line was getting parsed as
(ref($_[0]) ? $params = shift : $params) = {@_};
In reply to Re: Parameter list wierdness
by dave_the_m
in thread Parameter list wierdness
by CassJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |