1File::ExtAttr::Tie(3) User Contributed Perl DocumentationFile::ExtAttr::Tie(3)
2
3
4

NAME

6       File::ExtAttr::Tie - Tie interface to extended attributes of files
7

SYNOPSIS

9         use File::ExtAttr::Tie;
10         use Data::Dumper;
11
12         tie %a,
13           "File::ExtAttr::Tie", "/Applications (Mac  OS 9)/Sherlock 2",
14           { namespace => 'user' };
15         print Dumper \%a;
16
17       produces:
18
19         $VAR1 = {
20                  'com.apple.FinderInfo' => 'APPLfndf!?',
21                  'com.apple.ResourceFork' => '?p?p5I'
22                 };
23

DESCRIPTION

25       File::ExtAttr::Tie provides access to extended attributes of a file
26       through a tied hash. Creating a new key creates a new extended
27       attribute associated with the file. Modifying the value or removing a
28       key likewise modifies/removes the extended attribute.
29
30       Internally this module uses the File::ExtAttr module. So it has the
31       same restrictions as that module in terms of OS support.
32

METHODS

34       tie "File::ExtAttr::Tie", $filename, [\%flags]
35           The flags are the same optional flags as in File::ExtAttr.  Any
36           flags given here will be passed to all operations on the tied hash.
37           Only the "namespace" flag makes sense. The hash will be tied to the
38           default namespace, if no flags are given.
39

SEE ALSO

41       File::ExtAttr
42

AUTHOR

44       David Leadbeater, <http://dgl.cx/contact>
45
46       Documentation by Richard Dawe, <richdawe@cpan.org>
47
49       Copyright (C) 2006 by David Leadbeater
50
51       This library is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself, either Perl version 5.8.5 or, at
53       your option, any later version of Perl 5 you may have available.
54
55       1; __END__
56
57
58
59perl v5.28.1                      2007-11-30             File::ExtAttr::Tie(3)
Impressum