shawnhcorey has asked for the wisdom of the Perl Monks concerning the following question:
$ perl -E'say scalar( split( /\./, q{.} ));' 0 $ perl -E'say scalar( split( q{.}, q{.} ));' 0
Why don't I get an array of two empty strings?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bug in split?
by haukex (Archbishop) on Sep 27, 2017 at 13:53 UTC | |
by shawnhcorey (Friar) on Sep 27, 2017 at 14:30 UTC | |
by karlgoethebier (Abbot) on Sep 27, 2017 at 18:18 UTC | |
by afoken (Chancellor) on Sep 27, 2017 at 18:45 UTC | |
by karlgoethebier (Abbot) on Sep 27, 2017 at 19:01 UTC | |
|
Re: Bug in split?
by Corion (Patriarch) on Sep 27, 2017 at 13:44 UTC |