On Sun, 25 Nov 2007 09:21:04 -0800, sjalloq
<[EMAIL PROTECTED]> wrote:

>
>Hi all,
>
>I've already emailed Robin but thought someone here might be able to
>help me out in the meantime.  When I run the latest flac2mp3 0.3.0rc1 I
>get the following error:
>
>[macbaddy:~] sjalloq% flac2mp3.pl /Volumes/FreeNAS/MEDIA/FLAC
>/Volumes/FreeNAS/MEDIA/MP3_new
>"cleanup" is not exported by the File::Temp module


Robin already has an open problem ticket on this from last March, and
I conversed with him about just a week ago.  Tiger comes with Perl
5.6.  Perl 5.7 introduced some changes to the File::Temp module that
Robin's script makes use of.  Leopard comes with Perl 5.8.

Robin put out the word that he want's to resolve the situation by
declaring Perl 5.7 or above as a pre-requisite for using the script.
Nobody objected that I saw.

Therefore, it will not work as-is on Tiger.

However, I was able to get it working by changing two lines:

old:
use File::Temp qw/ cleanup /;
new:
use File::Temp;

old:
             $tmpfh->unlink_on_destroy(0);
new:
             # $tmpfh->unlink_on_destroy(0);

I have to admit I'm not 100% positive about the effects of commenting
out the second line even after reading the documentation for the
File::Temp module.  It wasn't clear to me if the older Perl would
behave differently because the function, and therefore documentation,
didn't exist in the older version.  However, I did convert hundreds of
FLAC files last week with no apparent ill effect.

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping

Reply via email to