perlquestion
hotshot
I have an array of names, some of the names begin with '@', for example:
<CODE>
@arr = (test1, @test2, @test3, test4, test5)
</CODE>
does anyone have a short way to return from this array two strings?: one is the names without the '@' (separated by commas), and the second is the names with the '@', <B>but</B> after we cut the '@' from them. <BR>
for the above example I would expect: <CODE>
$str1 = 'test1,test4,test5';
$str2 = 'test2,test3';
</CODE>
Thanks
<BR>
<BR>
<A HREF="/index.pl?node=Hotshot&lastnode_id=479">Hotshot</A>