I'm having trouble installing extra modules on an active state (windows) perl installation. I download the zip file containing the necessary files and excute the install command in the README file (ppm install xxxx.ppd) and it finishes with no errors. When I try to use the module, however, I get errors. The most recent error was with an MP3 module:
#!/usr/bin/perl -w
use strict;
use MP3::ID3v1Tag;
opendir(DIR, "H:\\test") || die "Unable to open directory: $!";
my @file_names = readdir(DIR);
closedir(DIR);
my ($title, $artist, $mp3_file);
foreach my $file (@file_names) {
$mp3_file = new MP3::ID3v1Tag("$file");
$title = $mp3_file->get_title();
$artist = $mp3_file ->get_artist();
print "$title - artist\n";
}
and I get this error......
Can't open .: Permission denied at d:/Perl/site/lib/MP3/ID3vTag.pl lin
+e 83
Can't call method "get_title" on an undefined value at rename.pl line
+57
Any suggestions?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|