Skip Menu |

This queue is for tickets about the Mac-PropertyList CPAN distribution.

Report information
The Basics
Id: 77623
Status: resolved
Priority: 0/
Queue: Mac-PropertyList

People
Owner: Nobody in particular
Requestors: apocryphon.now [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Undefined subroutine even when module is included
Any suggestions as to why the script is not detecting the inclusion of Mac:PropertyList? Perl version: v5.12.3 OS vendor and version: Darwin Kernel Version 11.3.0 error message: Undefined subroutine &main::parse_plist_file called at perltest1.pl line 8. code: #!/usr/bin/perl use strict; use warnings; use Mac::PropertyList; my $filename = "/Users/bleh/Library/Preferences/pbs.plist"; my $data = parse_plist_file( $filename ); print $data;
On Mon Jun 04 14:18:22 2012, apocryphon wrote: Show quoted text
> Any suggestions as to why the script is not detecting the inclusion of > Mac:PropertyList?
The subroutines aren't exported by default, which means I need to update the synopsis. You can use: use Mac::PropertyList qw(parse_plist);