bennyroh has asked for the wisdom of the Perl Monks concerning the following question:
The variables above contain the following values:$drive = Map "$sh",{user=>"$us",pass=>"$pa",domain=>"$do"};
I keep getting the following error:$sh = '\\\\machine1\\d\$' $us = 'username' $pa = 'password' $do = 'domain'
However, if I were to cut and paste the exact values above and insert them into the Map statement, the process works beautifully. I have tried various combinations of single and double quotes, escaping each and then without escaping, with and without the quotes. How do I pass values/options to the Map function through variables?"The specified device name is invalid."
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mapping a drive with Win32::Fileop
by ikegami (Patriarch) on May 11, 2008 at 20:08 UTC | |
|
Re: Mapping a drive with Win32::Fileop
by pc88mxer (Vicar) on May 11, 2008 at 23:53 UTC | |
by ikegami (Patriarch) on May 12, 2008 at 01:24 UTC | |
by tye (Sage) on May 12, 2008 at 04:02 UTC |