May I suggest, for those who might not have linux, the following code, which will generate html link pages by genre and model name.

Please feel free to add html / body etc tags of the non compliance upsets you. Hmmm, I'm already thinking there should be a use cgi in there somewhere. Enjoy.

#!/usr/bin/perl use strict; $|++; my %files; foreach my $file_name (glob "RESULTS/*") { my ($top_level, $model_name) = ($file_name =~ m/RESULTS\/(.*?)_(.*?) +_.*$/); $top_level =~ s/^9/199/ or $top_level =~ s/^0/200/; $files{$top_level}{$model_name}{$file_name} = 1; $files{$model_name}{'all'}{$file_name} = 1; } -d 'HTML' or mkdir 'HTML' or die "mkdir HTML: $!"; open INDEX, ">HTML\\index.html"; foreach my $top_level (sort keys %files) { print INDEX qq|<a href="./index_$top_level.html">$top_level</a><br/> +\n|; open TOP_INDEX, ">HTML\\index_$top_level.html"; foreach my $model_name (sort keys %{$files{$top_level}}) { open MODEL_INDEX, ">HTML\\index_${top_level}_${model_name}.html"; my $image_count = 0; foreach my $file_name (sort keys %{$files{$top_level}{$model_name} +}) { $image_count++; print MODEL_INDEX qq|<img src="../$file_name"><br/>\n|; } print TOP_INDEX qq|<a href="./index_${top_level}_${model_name}.htm +l">$model_name ($image_count)</a><br/>\n|; } }

In reply to Re^2: Swimsuits2004 by reasonablekeith
in thread Swimsuits2004 by zentara

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.