Two common solutions is two put parens around the function's arguments
print( (@somelist)[1] );
Or put something between the function name and the opening parens, such as the no-op operator
print +(@somelist)[1];
In reply to Re^3: how to split a string and take certain position?
by ikegami
in thread how to split a string and take certain position?
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |