Don't ask to ask, just ask | |
PerlMonks |
Re: Error compiling script running powershell commandby Happy-the-monk (Canon) |
on Dec 28, 2017 at 23:27 UTC ( [id://1206376]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|