in reply to Re^2: Whitespace protection in glob expression for Windows network paths
in thread Whitespace protection in glob expression for Windows network paths
... 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Whitespace protection in glob expression for Windows network paths
by Another Ed (Sexton) on Nov 12, 2014 at 10:17 UTC |