Do you know where your variables are? | |
PerlMonks |
strange File::Copy issueby danmcb (Monk) |
on Oct 31, 2011 at 02:57 UTC ( [id://934812]=perlquestion: print w/replies, xml ) | Need Help?? |
danmcb has asked for the wisdom of the Perl Monks concerning the following question: I am writing a wma to mp3 converter, which preserves tags by using Audio::WMA and MP3::Tag towards the end of the code, I have this:
(I am using File::Copy copy because some files have all kinds of quotes and so on which make backticks, system, etc awkward. I guess I could have escaped them, but I went this way instead ... that's what modules are for, right?) Here's the weird thing. My target file (in this case test.mp3) doesn't have tags, but tmp.mp3 does. the files are also a bit different in size:
There is really nothing between the writing of tags and the copy that can do this. Is it possible that there is some kind of weird timing issue, where the tag is not flushed to the file before the copy happens? I am sitting here thinking this must be a late night issue ... but there are no file operations at all between the two points. What is going on ... ?
Back to
Seekers of Perl Wisdom
|
|