|
Re: MakeMaker: msg#00411perl-beginners
On Thu, Jul 30, 2009 at 19:28, Patrick Dupre<pd520@xxxxxxxxxx> wrote: > Hello, > > Insi de my Makefile.PL, I would like to do something like: > LIBS Â => ['-lm -L$(PATH) -lmlib'], > > with $PATH define at the beginning of the file, but I cannot make it > work !!!! > What am I doing wrong ? snip I see two things wrong: single quotes don't interpolate, $(PATH) doesn't mean what you thing it means. Change the code to: LIBS => [ "-lm -L$PATH -lmlib" ], "$(PATH)" expands to $( . 'PATH)', $( is the real GID of the current process (see [perldoc perlvar][1]). You may have meant "${PATH}", but that is not necessary since the string is not ambiguous (it is need in cases like this "${foo}bar" where Perl will think you want the variable $foobar rather than what you want: $foo). [1] : http://perldoc.perl.org/perlvar.html#$( -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional commands, e-mail: beginners-help@xxxxxxxx http://learn.perl.org/
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |