No. But nobody stop you to create such a function. As you already know how to split a string it should be easy to build yourself a small helper-sub which splits a string and build two returnvalues. As a sub only can return one value i suggest using a list or a map as returnvalue.