SuicideJunkie's reply Re: Whitespace protection in glob expression for Windows network paths "works" (on a local or mapped drive) with Win7, AS 5.018 ...

          ... as a script:

#!/usr/bin/perl use warnings; use strict; use 5.018; # 1106821 my @dir = @ARGV; for my $dir(@dir) { print glob "\"$dir/*\"\n"; }

          ... and as a one-liner at the cmd prompt:

C:\>perl -E "my $dir = \"d:\_wo\"; print glob \"$dir/*\";

where "works" is not deprecated as a descriptor because of its failure to terminate each item with a return, tab or other spacer... but that's an issue rooted in this usage of glob.

You're apt to learn something valuable if you'll do the necessary work to trace down and understand what went wrong with your attempt to implement the first reply.


++$anecdote ne $data



In reply to Re^3: Whitespace protection in glob expression for Windows network paths by ww
in thread Whitespace protection in glob expression for Windows network paths by Another Ed

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.