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 jklIn reply to Re: split and @
by dbuckhal
in thread split and @
by keesturam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |