What you have should work fine. What error are you getting?
sub func{ return 0 .. 10 };; print +(func())[5];; 5
In reply to Re: Looking for syntactic shortcut
by BrowserUk
in thread Looking for syntactic shortcut
by mrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |