$a="root,test1,foo-root,root,root-foo,test2,root";
while($a=~s/(\w.*\b)root(\b.*\w.*)/\1\2/g);

�� �� StevenLu (Steven Lu) �拇������到: ��
: 去�������址��械牡���root
: root,test1,foo-root,root,root-foo,test2,root
: �� sed 's/\<root\>//g'�����邪�
: ...................

--

�� ��源:��水木���� newsmth.net��[FROM: 58.207.180.*]