You could also use printf, which expects its first argument to be a format string, like so:
printf "%s", ('abcd' =~ /(\w)\w(\w)/ )[0];
In reply to Re: Slice misuse ?
by liverpole
in thread Slice misuse ?
by blogical
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |