Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Not sure what you mean about list assignment; the difference is that a third parameter of -1 makes split keep trailing empty strings where by default it discards them.
In your example, split returns 13 empty strings (one from before the first character of $ip, one for each position between characters, and one from after the last character.)
-- A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| | Online Fortune Cookie Search Office Space merchandise In reply to Re^3: does split(".") work?
by ysth
|
|