467,110 Members | 1,335 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,110 developers. It's quick & easy.

passing eval code through make to a perl script

I have a make file that executes a perl script that takes PERL as an eval.

The script executes the eval() function via an arguement to the script
like this:

script $(ARGUMENT)
However when I attempt to pass something like this

make "ARGUMENT=-eval '$MYVALUE = 101'" target

the $MYVALUE gets evaluated at the command line. I've tried escaping
the "$" in $MYVALUE passing it in a $$MYVALUE, but nothing works. It
appears that $MYVALUE gets evaluated in the make as $M thus what get's
passed to the script is

scripts -eval 'YVALUE = 101' which won't work. Is there a way to pass $
variables through make without them being evaluated?

Sep 10 '08 #1
  • viewed: 1291

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sean | last post: by
7 posts views Thread by Cemal Karademir | last post: by
4 posts views Thread by Jm lists | last post: by
10 posts views Thread by Gordon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.