- or download this
index($buf, "/DATA_String/") > 0
- or download this
index($buf, "/DATA_String/") > -1
- or download this
$ perl -E '
my @strings = qw{
...
say "-" x 40;
}
'
- or download this
----------------------------------------
$string[no_data_string]
...
$pos[-1]
index() TRUE
----------------------------------------
- or download this
...
use strict;
...
my ($sock, $new_sock, $buf );
$sock = IO::Socket::INET::->new(...);
...