in reply to Re: Split fake, an emulation of split
in thread Split fake, an emulation of split
use strict; use warnings; use 5.010; # From https://perldoc.perl.org/5.30.1/functions/split.html: # and each of these: print join(':', split(//, 'abc', 3)), "\n"; print join(':', split(//, 'abc', 4)), "\n"; # produces the output a:b:c __DATA__ Output: a:b:c a:b:c:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Split fake, an emulation of split
by ikegami (Patriarch) on Aug 01, 2020 at 06:42 UTC | |
by bojinlund (Monsignor) on Aug 01, 2020 at 14:43 UTC | |
by Anonymous Monk on Aug 01, 2020 at 08:49 UTC |
In Section
Meditations