RE: Win32::NetResources Help - RESOLVED

2004-03-17 Thread Grakowsky, Richard \(ETS: Communications and Network Services\)
Here we go!   my($username,$pw,$mdriveshare,%mdriveinfo,$err);     $mdriveshare = "really\\long\\dfs\\path"; %mdriveinfo   = (     'RemoteName'   =>    $mdriveshare,     'LocalName'   =>    "M:", );  

RE: Win32::NetResources Help

2004-03-17 Thread Guay Jean-Sébastien
Hello Richard, Please reply to the list... My suggestion didn't work, and knowing that maybe someone else can go a step further. If you only reply to me others might think my suggestion worked for you since they didn't see a reply from you. > Interesting thought, but I changed up the code and it

RE: Win32::NetResources Help

2004-03-17 Thread Guay Jean-Sébastien
Hello Joseph, > Everything else you said was spot on, Guay; but using { } creates an > *anonymous* hash (a reference). So now you have a single element hash > whose key is a hash ref and whose value is undef. > > Just use parentheses to make a hash, where keys alternate with their > values ("=>"

RE: Win32::NetResources Help

2004-03-17 Thread Joseph Discenza
Guay Jean-Sébastien wrote, on Wednesday, March 17, 2004 2:17 PM : > my($share) = some\\share\\path; : > my(%shareinfo) = { 'RemoteName' => $share }; : : I believe your mistake is here. Do not use parentheses after my, : except if : you want to assign individual elements of a list to

RE: Win32::NetResources Help

2004-03-17 Thread Guay Jean-Sébastien
Hello Richard, > my($share) = some\\share\\path; > my(%shareinfo) = { 'RemoteName' => $share }; I believe your mistake is here. Do not use parentheses after my, except if you want to assign individual elements of a list to individual variables... Using parentheses tells my to create a l