Question: i am developing a test automation host which is currently connected to 10 embedded controllers via serial ports (/dev/ttyS\*)

to speed up the testing i wish to add more host and enable them to also talk to the controllers. However the controller must remain connected to the first host. 

the entire test automation software is written in perl so i am looking for a perl based solution. i am currently using Device::SerialPort to talk to the controllers. until now it did the work just fine

is there a way using Device::SerialPort to connect to tty devices on a remote machine
if not is there a similar perl module which can do that

Thanks in advance

Answer: 
Use the explode function and a foreach loop to perform the string manipulation.

```
$programs = explode(" ", $data);
foreach($programs as $value) {
    //Echo out the html - $value contains the program name
}

```

I leave it to you to figure out how to format the program name with the HTML that you need.
```
$fx  = "photoshop illistrator indesign";
$words = explode(" ", $fx);
array_walk($words, function(&$n) { 
  echo '<div class="'.$n.'"></div>';
}); 

```