The leading string of /'s generates an empty first element. One fix is:
my @arr = grep {length} split("/+",$string);
In reply to Re: question on perl's split function
by GrandFather
in thread question on perl's split function
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |