You can use wantarray to see what context you were called in.
Update: s/\barray\b/list/g per chromatic's comment.In reply to Re^3: returning tied array
by AK108
in thread returning tied array
by strat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |