File::ExtAttr::Tie(3pm)

File::ExtAttr::Tie3pm

Tie interface to extended attributes of files

Usage

  use File::ExtAttr::Tie;
  use Data::Dumper;
  tie %a,
    "File::ExtAttr::Tie", "/Applications (Mac  OS 9)/Sherlock 2",
    { namespace => 'user' };
  print Dumper \%a;

produces:

  $VAR1 = {
           'com.apple.FinderInfo' => 'APPLfndf!?',
           'com.apple.ResourceFork' => '?p?p5I'
          };

Overview

File::ExtAttr::Tie provides access to extended attributes of a file through a tied hash. Creating a new key creates a new extended attribute associated with the file. Modifying the value or removing a key likewise modifies/removes the extended attribute.

Internally this module uses the File::ExtAttr module. So it has the same restrictions as that module in terms of OS support.

Methods

tie "File::ExtAttr::Tie", $filename, [\%flags]

The flags are the same optional flags as in File::ExtAttr. Any flags given here will be passed to all operations on the tied hash. Only the "namespace" flag makes sense. The hash will be tied to the default namespace, if no flags are given.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

David Leadbeater, <http://dgl.cx/contact>

Documentation by Richard Dawe, <[email protected]>

From libfile-extattr-perl 1.09-6+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.