in reply to Re: Do not understand code
in thread Do not understand code
See how much more readable that is?my @str = split //; for (my $i = 1; $i < scalar(@str) - 2; $i++) { if ($str[$i] eq 'B' && $str[$i+1] eq 'G' && $str[$i+2] eq 'V') { unlink $file; $i = scalar(@str) - 2; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Do not understand code
by Anonymous Monk on Sep 28, 2017 at 16:45 UTC |