in reply to INDEX limits
It works for me for longer strings:
#! /usr/bin/perl use warnings; use strict; use feature qw{ say }; my $long_string = 'ab' x 3e9; my $pos = index $long_string, 'ba', 6e9 - 4; say $pos; __END__ 5999999997
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: INDEX limits
by clivehumby (Initiate) on Nov 11, 2015 at 14:08 UTC |