#!/usr/bin/perl # url.pl -- Windows .url to html table converter. use strict; use warnings; use File::Glob ':glob'; expand(); print "\n"; sub filter { my $file = shift; open FILE, $file or die "Couldn't open: $file $!\n";; while() { if (/BASEURL=/) { s/BASEURL=//; print "
  • $_
  • \n"; last; } } close(FILE); } sub expand { my @list; foreach (@ARGV) { foreach(bsd_glob($_)) { push @list,$_; } } @ARGV = @list; }