Another kind of information to pass on to those who are looking is a list of useful URL pointers. Normally as I find them, I just use drag and drop to copy a link to a folder. Trouble with that is while it is directly useful for me, it isn't much good in either email or in a node on PM. So finally I built up enough irratation to overcome coding inertia and wrote the following:
#!/usr/bin/perl # url.pl -- Windows .url to html table converter. use strict; use warnings; use File::Glob ':glob'; expand(); print "<ul>\n"; foreach (@ARGV) { filter($_); } print "</ul>\n"; sub filter { my $file = shift; open FILE, $file or die "Couldn't open: $file $!\n";; while(<FILE>) { if (/BASEURL=/) { s/BASEURL=//; print "<li><a href=\"$_\">$_</a></li>\n"; last; } } close(FILE); } sub expand { my @list; foreach (@ARGV) { foreach(bsd_glob($_)) { push @list,$_; } } @ARGV = @list; }
Which produces things like: Update: Removed 'use diagnostics' as suggested.

–hsm

"Never try to teach a pig to sing…it wastes your time and it annoys the pig."

In reply to Pesky little URL files to HTML by hsmyers

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.