brian d foy > Mac-PropertyList > Mac::PropertyList::ReadBinary

Download:
Mac-PropertyList-1.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
Stalled  1
View/Report Bugs
Module Version: 1.41   Source  

NAME ^

Mac::PropertyList::ReadBinary - read binary property list files

SYNOPSIS ^

        # use directly
        use Mac::PropertyList::ReadBinary;

        my $parser = Mac::PropertyList::ReadBinary->new( $file );

        my $plist = $parser->plist;

        # use indirectly, automatically selects right reader
        use Mac::PropertyList;

        my $plist = parse_plist_file( $file );

DESCRIPTION ^

This module is a low-level interface to the Mac OS X Property List (plist) format. You probably shouldn't use this in applications—build interfaces on top of this so you don't have to put all the heinous multi-level object stuff where people have to look at it.

You can parse a plist file and get back a data structure. You can take that data structure and get back the plist as XML (but not binary yet). If you want to change the structure inbetween that's your business. :)

See Mac::PropertyList for more details.

Methods

new( FILENAME | SCALAR_REF | FILEHANDLE )

Opens the data source, doing the right thing for filenames, scalar references, or a filehandle.

plist

Returns the Mac::PropertyList data structure.

SEE ALSO ^

Some of the ideas are cribbed from CFBinaryPList.c

        http://opensource.apple.com/source/CF/CF-550/CFBinaryPList.c

SOURCE AVAILABILITY ^

This project is in Github:

        git://github.com/briandfoy/mac-propertylist.git

CREDITS ^

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright © 2004-2014 brian d foy. All rights reserved.

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

syntax highlighting: