08 Jul 2022 03:18:32 UTC
- Distribution: Mac-PropertyList
- Module version: 1.504
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (530 / 1 / 4)
- KwaliteeBus factor: 1
- 84.43% Coverage
- License: artistic_2
- Perl: v5.10.0
- Activity24 month
- Download (43.02KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Mac::PropertyList::ReadBinary - read binary property list files
# 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 );
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.
- new( FILENAME | SCALAR_REF | FILEHANDLE )
Opens the data source, doing the right thing for filenames, scalar references, or a filehandle.
Some of the ideas are cribbed from CFBinaryPList.c
This project is in Github:
brian d foy,
Tom Wyant added support for UID types.
Copyright © 2004-2021, brian d foy <firstname.lastname@example.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
Module Install Instructions
To install Mac::PropertyList, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Mac::PropertyList
For more information on module installation, please visit the detailed CPAN module installation guide.