---
name: "IO::File::WithPath"
section: "3pm"
platform: "linux"
package: "libio-file-withpath-perl"
version: "0.09-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/IO::File::WithPath"
---

# IO::File::WithPath(3pm)

An IO::File extension that keeps the pathname

## NAME

IO::File::WithPath - An IO::File extension that keeps the pathname

## SYNOPSIS

```
  use IO::File::WithPath;
  my $io = IO::File::WithPath->new('/path/to/file');
  print $io->path; # print '/path/to/file'
  print $io->getline; # IO::File-method
```

## DESCRIPTION

IO::File::WithPath is a Perl module extending IO::File to keep track of the absolute path name.

## METHODS

- new

  create object from file-path as IO::File-\>*new()*. but file-path not include MODE.(e.g. '\</path/to/file')

- path

  file-path

## AUTHOR

Masahiro Chiba \<nihen@megabbs.com\>

## THANKS

miyagawa nothingmuch

## LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## COPYRIGHT

Copyright (c) 2009-2011 Masahiro Chiba \<nihen@megabbs.com\>
