Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Understanding Split and Join

by chromatic (Archbishop)
on Dec 29, 2006 at 00:52 UTC ( #592154=note: print w/ replies, xml ) Need Help??

in reply to Understanding Split and Join

What happens if the delimiter is indicated to be a null string (a string of zero characters)?

perl behaves inconsistently with regard to the "empty" regex:

my $string = 'Monk'; exit unless $string =~ /(o)/; my @matches = $string =~ //; warn join('=', @matches), "\n"; exit unless $string =~ /(o)/; my @letters = split( //, $string ); warn join('-', @letters), "\n";

Comment on Re: Understanding Split and Join
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://592154]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2015-11-25 11:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (673 votes), past polls