http://www.perlmonks.org?node_id=638600


in reply to Re: Need a little help appending lines
in thread Need a little help appending lines

There's a lot more to the file where I get the port number from, I just used an example, but here's a more descriptive example of the file I pull the port out of: example.txt:, line from example txt:
entry_entry_host_entry 8080/tcp # hostname entry entry