Try assigning the result of the substr operation to a variable, e.g.:
my $sub = substr($links, 0, 1);
William
In reply to Re: Useless use of substr in void context
by knowmad
in thread Useless use of substr in void context
by mkurtis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |