package Foo::Install::Files; $self = { 'deps' => [ 'Gtk2', 'Cairo', 'Pango', 'Glib' ], 'inc' => '', 'libs' => '', 'typemaps' => [] }; @deps = @{ $self->{deps} }; @typemaps = @{ $self->{typemaps} }; $libs = $self->{libs}; $inc = $self->{inc}; $CORE = undef; foreach (@INC) { if ( -f $_ . "/Foo/Install/Files.pm") { $CORE = $_ . "/Foo/Install/"; last; } } sub deps { @{ $self->{deps} }; } sub Inline { my ($class, $lang) = @_; if ($lang ne 'C') { warn "Warning: Inline hints not available for $lang language "; return; } +{ map { (uc($_) => $self->{$_}) } qw(inc libs typemaps) }; } 1;