in reply to Re: discussion: What should split( /PATTERN/, EXPR, 0 ) return better? (LIMIT is consistent! )
in thread discussion: What should split( /PATTERN/, EXPR, 0 ) return better?

So, if it returns unsplitted remaining, it is not broken, it is as I wanted, especially for doing arithmetic sum.

I didn't understand about "your desired count behavior for LIMIT=0 is actually mapped on LIMIT=1". My desired behaviour don't have an equivalent value of any possible LIMIT.
  • Comment on Re^2: discussion: What should split( /PATTERN/, EXPR, 0 ) return better? (LIMIT is consistent! )

Replies are listed 'Best First'.
Re^3: discussion: What should split( /PATTERN/, EXPR, 0 ) return better? (LIMIT is consistent! )
by LanX (Saint) on Oct 13, 2017 at 13:06 UTC
    > , it is not broken, it is as I wanted

     $sum =  10 + 11 + "12 13 14 15" ;

    Orly?

    Did you see tybalt89's answer?

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      So it's 33 and it's OK.
        > it's OK.

        so you ignored tybalt89's answer to try warnings ...

          DB<31> use warnings; $sum =  10 + 11 + "12 13 14 15" ; --> Argument "12 13 14 15" isn't numeric in addition (+) at ...

        I'm very busy at the moment, please excuse if I don't reply to your threads anymore. :)

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!