in reply to Re: Array empty
in thread Split on . (dot)
prints: 0print ord("");
Indeed, the resulting array he's getting after doing
is$ip = "21.23\n"; @t = split /./, $ip;
("", "", "", "", "", "\n")
The explanation: every character in the input string, except the newline, is used as a split delimiter. Thus you get, as a result, the stuff between those characters, which is nothing every time, except at the last character.
|
|---|