@MyArray = &YourFunction(pass variables here); ## or $MyString = &YourFunction(pass variables here); ##might work! -------------- sub YourFunction{ @array =@_; (do something) return $YourString; ##wich ya get a string return @YourArray; ##wich ya get an array, i think the array objects seperated by spaces! (and furthermore you can change the space to something else through a special command to the perl interperter! :P ) } ---------------