|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: how to put the value in proper formatby johngg (Abbot) |
| on Aug 29, 2012 at 09:26 UTC ( #990414=note: print w/ replies, xml ) | Need Help?? |
|
If you want your output for the chosen port to be all on one line, as might be suggested by the last line of your post, don't put the line feeds (\n) in the first two print statements. However, it does not look like the output you show was produced by that code, the equals sign is after the port/speed/link values in the print statements. Using substr here seems like a lot of hard work and is potentially fragile. I think it would be better to split the line.
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||