Quote:
Originally Posted by alix123
Are there any inbuilt functions in perl to get all ip address based on the network connection name.
|
The solution given by jmeads is quite good and simple. You just have to parse the buffer since all the information is there.
I'd like to add a comment on 'inbuilt functions' in Perl. Perl is as much CPAN as you can throw at it. For instance if you use the module Net::Address::Ethernet you'll get inbuilt functionality but then there are some dependencies on other modules such as:
Env::Path
Regexp::Common
Test::Pod
In the end, just parse the buffer and that's quite good. But I thought I'd take this opportunity to mention that there are 'hundreds' of modules available for Perl from the CPAN (cpan.org) and those adds a whole lot of 'inbuilt' functionalities.
Cheers.