Where would you suggest doing error checking? I thought either glob succeeds and returns a list or fails and doesn't. If it succeeds it will print a non-zero number and if it fails it would return zero. It does seem to me it is failing but how would I get more clarity as to why?

One way

$ perl -le " print glob 'foo/*'; warn sprintf q/ERRRR(%d)(%s)(%d)(%s)/ +, $!,$!,$^E,$^E; " ERRRR(22)(Invalid argument)(5)(Access is denied) at -e line 1. $ perl -le " print glob 'nonexist/*'; warn sprintf q/ERRRR(%d)(%s)(%d) +(%s)/, $!,$!,$^E,$^E; " ERRRR(2)(No such file or directory)(3)(The system cannot find the path + specified) at -e line 1. $ ls -loanh foo ls: reading directory ado: Permission denied total 0 $ ls -loanh nonexist ls: nonexist: No such file or directory

As for bugs being furthest from my mind ...

.oO{{{ Something is wrong, but I don't know what, or how to check, must be a bug in my tools }}} -- Ah yes, and you are the first person to have noticed this bug since 1994. Sure.; also known as superstition :)


In reply to Re^3: Might there be some bug in glob under apache? by Anonymous Monk
in thread Might there be some bug in glob under apache? by markseger

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.