http://www.perlmonks.org?node_id=575455

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

monks,

Executed the below code.

use strict; use Data::Dumper; use Win32::NetResource qw(:DEFAULT GetSharedResources GetError); if (GetSharedResources(my $resources, RESOURCETYPE_DISK, { RemoteName => "192.168.10.67"})) { print "GetSharedResources Success\n"; print Dumper [ $resources ]; foreach my $href (@$resources) { print "-----\n"; foreach(keys %$href) { print "$_: $href->{$_}\n"; } } } else { print "problem in GetSharedResources\n"; }
Output :-
C:\Perl>perl resource.pl GetSharedResources Success $VAR1 = [ undef ];
any clue ?
Update: Executed the above code as normal user in windows.

"Keep pouring your ideas"