in reply to Re: coding style suggestion
in thread coding style suggestion: (...)[1] vs. [...]->[1]
my $string = "zero one two three"; my $offset = 1; print $string =~ /(?:[^\s]+\s+){$offset}([^\s]+)/; __END__ one
And in this case the regex is not large, but may take some time to execute.
Liz
|
|---|