Skip to content

Instantly share code, notes, and snippets.

@mxey
Created December 5, 2010 15:37
Show Gist options
  • Select an option

  • Save mxey/729177 to your computer and use it in GitHub Desktop.

Select an option

Save mxey/729177 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Modern::Perl;
use XML::XSPF;
my $playlist = XML::XSPF->parse($ARGV[0]);
for my $track ($playlist->trackList) {
say $track->location if $track->location;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment