Greetings, and thank you very much for your reply.
Yes, I can elaborate. :)
Firstly, I'm not very good at this. But after many fails, this was the best I could conceive:
my $listing = $ENV{CWD};
While it did give me Current Working Directory.
Perl(1) was (rightfully) unhappy with my choice
( Insecure $ENV{PATH} while running with -T switch ).

Why do I care about CWD||PWD? Because my script will live in /cgi-bin/, or @INC.
I need to include it where ever I call it from
eg; <!--#exec cgi="/cgi-bin/filelist.pl" -->.
I've looked at other modules that would dump/list the contents of folders -- File::Listing, for example.
But given that none of them offered the ability to alternate td/div background colors for readability,
and that there are thousands of, ahem... PHP scripts that do this. I thought this might be a worthy endevour -- god knows I need the practice! :)

I hope this makes better sense of my delemna, and thank you again for your response.

#!/usr/bin/perl -Tw

use strict;
use perl::always;

my $perl_version( 5.12.4 );

print $perl_version;

In reply to Re^2: Handling the output of a system command -- how to best manage? by taint
in thread Handling the output of a system command -- how to best manage? by taint

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.