IO-File-WithPath
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/IO/File/WithPath.pm view on Meta::CPAN
view all matches for this distribution
8910111213141516171819202122232425262728sub
new {
my
$class
=
shift
;
my
$path
= File::Spec->rel2abs(
shift
);
my
$io
= IO::File->new(
$path
,
@_
);
# symboltable hack
${
*$io
}{+__PACKAGE__} =
$path
;
bless
$io
=>
$class
;
}
sub
path {
my
$io
=
shift
;
${
*$io
}{+__PACKAGE__};
}
1;
__END__
view release on metacpan - search on metacpan
( run in 1.193 second using v1.00-cache-2.02-grep-82fe00e-cpan-49f99fa48dc )