http://www.perlmonks.org?node_id=922712


in reply to Re^5: Help with reading MP3's
in thread Help with reading MP3's

script just hangs with no results. Should I be modifying it in any way prior to running it?

Replies are listed 'Best First'.
Re^7: Help with reading MP3's
by charlesboyo (Beadle) on Aug 26, 2011 at 20:06 UTC
    No, you shouldn't have to change anything.

    Have you tried stepping-through with the debugger? Where exactly is it "hanging"? You might also want to try adding a couple of prints in there for debugging purposes.

    Yet another approach is to present the to-be-searched paths on the command line. Swap

    while (<STDIN>) { chomp;
    with:
    foreach(@ARGV) {
    and invoke your script from the command line with: perl scriptname.pl c:\path1 c:\path2 ...

    Both approaches work for me.

      Ok, swapping that in worked! Not sure why...

      Will have to play with the formatting a bit to see if I can can prune out only those without tags or only those without photos.

      Thanks!