in reply to Splitting a string... Duh?
Since you need just one element of the strings, you don't need to use split. Here is a simple regex solution:
while (<DATA>) { m|(.+?)/| and push @ServerNames, $1; } [download]
Originally posted as a Categorized Answer.