被空格忽悠了~终于明白


在perl群*欣兄弟的耐心帮助下,小弟终于走出了自己设置的怪圈.

@fields = split /:/, “:::a:b:c:::”; #得到("","","","a","b","c");
@fields = split /:/, “:::a:b:c: : :”; #得到("","","","a","b","c","","");
上面两行代码是有区别的!
小弟就是被空格给忽悠了,呵呵!写在这里,以后可以自己查阅.
谢谢上面所有朋友的帮助,偶收获不小,谢谢您了!