can you please tell me how to pass the cshell variable to a perl one liner? i expect the script to print out AAA but it ends up giving me an error: Substitution replacement not terminated at -e line 1.
#!/usr/bin/tcsh -fb
set myvar = "AAA"
perl -e "print $myvar"
the more complex case for my script.
#!/usr/bin/tcsh -fb
set myvar = "AAA"
perl -ne 'if (/$myvar/) {s/m1/m2/g}' fileA