1 package System::Introspector::Probe::Hosts;
4 use System::Introspector::Util qw(
11 default => sub { '/etc/hosts' },
16 my $file = $self->hosts_file;
18 hosts_file => transform_exceptions {
21 body => scalar output_from_file $file,
33 System::Introspector::Probe::Hosts - Gather known hosts
37 Reads a C<hosts> file to produce a list of known hosts
43 The path to the C<hosts> file that should be read. Defaults to C</etc/hosts>.
49 =item L<System::Introspector>
55 Copyright (c) 2012 the L<System::Introspector>
56 L<AUTHOR|System::Introspector/AUTHOR>,
57 L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
58 L<SPONSORS|System::Introspector/SPONSORS>.
62 This library is free software and may be distributed under the same terms