Greetings.

on my machine:

C:\> perl - e 42 -d
Default die handler restored.

Loading DB routines from perl5db.pl version 1.07
Editor support available.

Enter h or `h h' for help, or `perldoc perldebug' for more help.

main::(-e:1):   42
  DB<1> opendir(DIR,'//webteam/') || warn($!)
No such file or directory at (eval 4)[D:/Perl/lib/perl5db.pl:1521] line 2.

  DB<2> opendir(DIR,'//webteam/discoc/') || warn($!)

  DB<3> x readdir(DIR)
0  'AUTOEXEC.BAT'
1  'baseclasses.log'
2  'bin'
3  'boot.ini'
[...]

//webteam is a machine name, //webteam/discoc a share name.
So it should work (except if you want the share list of a machine, which you
can get by using
capabilities from the Win32:: namespace - or even from parsing  `net view
\\\\machine`...)

Also if you are running apache as a service, be warned that the default
impersonating user (LocalSystem) does not typically have access permissions
to net share (this is especially true under NT Domain) - therefore you have
to change the impersonating user of the service.
(iven you have a working example this should not be your situation, however)

Cheers,
alf

P.S: I have a feeling this may be OT, on the mod_perl list...

Reply via email to