Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: globbing on remote network paths

by nimdokk (Vicar)
on Jun 19, 2007 at 16:07 UTC ( #622046=note: print w/ replies, xml ) Need Help??

in reply to globbing on remote network paths

Is this supposed to be a UNC? a relative directory? You might take a look at using File::Spec to build your path to make sure that the directory seperators are correct. Something like
You might need to play around with this some to get it to work right. You might also want to chdir to the directory prior to running the glob.

Comment on Re: globbing on remote network paths
Download Code
Re^2: globbing on remote network paths
by Anonymous Monk on Aug 22, 2007 at 04:06 UTC
    I had this same issue and changed glob to use the forward slash convention for directories (instead of the Windows back slash). ie my @files = glob( "\\\\server\\dir\\*" ) does not work my @files = glob ( "//server/dir/*" ) does work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://622046]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-03-04 13:47 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (112 votes), past polls