Skip to content

[doc] Error in the documentation of split #18016

@bojinlund

Description

@bojinlund

Where

https://perldoc.perl.org/5.30.1/functions/split.html
Description

Error in the documentation of split

In the file in perl/pod/perlfunc.pod, line 7844

old content

produces the output C<a:bc>, and each of these:

    print join(':', split(//, 'abc', 3)), "\n";
    print join(':', split(//, 'abc', 4)), "\n";

produces the output C<a:b:c>.

new content

produces the output C<a:bc>, and each of these:

    print join(':', split(//, 'abc', 4)), "\n";
    print join(':', split(//, 'abc', 5)), "\n";

produces the output C<a:b:c:>.

split.pl.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions