in reply to Re: 1 != split /a/, '' ?
in thread 1 != split /a/, '' ?

[ length($key_string) ? split(/\./, $key_string, -1) : '' ]

Replies are listed 'Best First'.
Re^3: 1 != split /a/, '' ?
by Anonymous Monk on Nov 04, 2015 at 19:30 UTC
    what is the -1 in split meaning?

      If LIMIT is negative, it is treated as if it were instead arbitrarily large; as many fields as possible are produced.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)