-Replace @
It is not compiled, it is called interpolation when a variable is replaced with its contents.
That is what you want Perl to do with your variable $un and Perl could not have guessed you did not want it to do the same with the next one.
Your simple solution is putting a backslash in front of the next variable, so make it read -Replace \@
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re: Error compiling script running powershell command
by Happy-the-monk
in thread Error compiling script running powershell command
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |