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;