I had:
$first = ('abcd' =~ /(\w)\w(\w)/ )[0]; print $first;
print ('abcd' =~ /(\w)\w(\w)/ )[0];
But apparently I can't have what I want. What is at work here?
"One is enough. If you are acquainted with the principle, what do you care for the myriad instances and applications?"
- Henry David Thoreau, Walden
In reply to Slice misuse ? by blogical
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |