Multiple choice technology web technology

What will be the size of the @fields array my $record = ':a:b:c:'; my @fields = split(':', $record, -1);

  1. 0

  2. 1

  3. 3

  4. 4

  5. 5

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Using -1 as the limit makes split return all fields including trailing empty strings. For ':a:b:c:', split returns ['', 'a', 'b', 'b', 'c', ''] - five elements (empty string at start and end).