sandeepda has asked for the wisdom of the Perl Monks concerning the following question:
I have a subroutine getListenerName($porttobeChecked) This subroutine returns me the name of the listener if i pass a port. Eg:If $porttobechecked=6712 I want to return an array a[0]=TRUE and a1=http-listener-1(listener name) If port to be checked is 4516..I want to return an array a[0]=FALSE and a1=null How can i parse this output.Any help appreciated?name ip port ------------------------------------ http-listener-1 * 6712 http-listener-2 * 8709
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help in parsing an input
by roboticus (Chancellor) on Jan 17, 2013 at 11:46 UTC | |
|
Re: Need help in parsing an input
by Athanasius (Archbishop) on Jan 17, 2013 at 11:49 UTC | |
by sandeepda (Novice) on Jan 17, 2013 at 12:29 UTC | |
by Athanasius (Archbishop) on Jan 17, 2013 at 13:07 UTC | |
by sandeepda (Novice) on Jan 17, 2013 at 13:23 UTC | |
by 2teez (Vicar) on Jan 17, 2013 at 14:15 UTC | |
|