xorl has asked for the wisdom of the Perl Monks concerning the following question:
Output:#!/usr/bin/perl use strict; use File::Glob qw(bsd_glob); my @dirlist = glob('\\\\servername\\path\\to\\docs\\with space in the +path\\for the directory\\*'); foreach my $dir (@dirlist) { print $dir . "\n"; }
(note the last word doesn't appear in the output, if that matters at all)servernamepathtodocswith space in the pathfor the
I'm writing and running the script on a Linux box, the remote box is a Win box.
I've also tried as many combinations of \\ or \ or / or // just in case that was the problem, but it doesn't seem to help.
What could be the problem?
Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: globbing on remote network paths
by Corion (Patriarch) on Sep 25, 2008 at 16:41 UTC | |
by xorl (Deacon) on Sep 25, 2008 at 18:05 UTC | |
|
Re: globbing on remote network paths
by moritz (Cardinal) on Sep 25, 2008 at 16:10 UTC | |
by xorl (Deacon) on Sep 25, 2008 at 17:49 UTC |