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
In Section
Seekers of Perl Wisdom