http://www.perlmonks.org?node_id=1012099


in reply to split and @

If you were trying to view the split content as a string with this line:

print "$input[$len-1]"; # splits properly into 4

You can just change it to simply:

print "@input";

The quotes around the array will give you a quick idea of how your splitting worked out.

---output---

ab cd efghi jkl