logo       

Re: MakeMaker: msg#00413

perl-beginners

Subject: Re: MakeMaker

Thank.


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#$(



--
---
==========================================================================
Patrick DUPRÃ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd520@xxxxxxxxxx
==========================================================================
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise