in reply to Error compiling script running powershell command
-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)
|
|---|