Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: trouble with Win32::NetResource

by $code or die (Deacon)
on Oct 09, 2001 at 05:34 UTC ( #117609=note: print w/replies, xml ) Need Help??

in reply to trouble with Win32::NetResource

That looks like the example from the documenation, so there shouldn't be any problems with the code.

On the other hand, you have an extra semi-colon in the line:
use Win32::NetResource; qw(:DEFAULT GetSharedResources GetError);
That should read:
use Win32::NetResource qw(:DEFAULT GetSharedResources GetError);
I don't think that is your problem though. I think you should try and reinstall Win32::NetResource - but because it is part of libwin32 and installed by default in ActivePerl, ActiveState may not provide a PPM. So if you can't upgrade (ppm verify --upgrade libwin32/Win32-NetResource), then you might want to try reinstalling perl.

I can't test the code at the moment - no Win32 at home. Good luck

And I don't think "net view" is the answer - the net command is nasty and a lot more work than getting Win32::NetResource working. And as already mentioned, Win32::Lanman is a nice alternative.

Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://117609]
[oiskuu]: Hm. that depends on kernel compiled with CONFIG_AUDITSYSCAL L
[tye]: apropos my several mentions of audit
[Corion]: At least my (non-SELinux) Debian has that config thing set. I don't have non-Debian machines handy (except Android)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-06-23 19:52 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.