bojinlund has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use 5.010; # from documentation: # ... and each of these: print join(':', split(//, 'abc', 3)), "\n"; print join(':', split(//, 'abc', 4)), "\n"; # produces the output a:b:c . say $^V; say $^O; __DATA__ output: a:b:c a:b:c: v5.30.1
In the second call there is an extra empty string. I am using Windows 10.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Function Split, bug or error in the documentation?
by haukex (Archbishop) on Jun 24, 2020 at 13:08 UTC | |
Re: Function Split, bug or error in the documentation?
by soonix (Canon) on Jun 24, 2020 at 12:54 UTC | |
Re: Function Split, bug or error in the documentation?
by davies (Prior) on Jun 24, 2020 at 15:30 UTC | |
Re: Function Split, bug or error in the documentation?
by bojinlund (Monsignor) on Jul 04, 2020 at 11:15 UTC | |
by ikegami (Patriarch) on Jul 31, 2020 at 14:30 UTC |
Back to
Seekers of Perl Wisdom