Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

leading and trailing @ symbols in variable declarations

by buadmin (Initiate)
on Sep 17, 2012 at 22:58 UTC ( #994145=perlquestion: print w/ replies, xml ) Need Help??
buadmin has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to debug a perl script and I came across a variable declarations like so ...

perl_path="@perl_path@" perl_shared_lib_dir_base="@perl_shared_lib_dir_base@"

I don't understand the why these declarations have trailing @ symbols. Can someone kindly please explain these declarations? Thank you.

Comment on leading and trailing @ symbols in variable declarations
Download Code
Re: leading and trailing @ symbols in variable declarations
by ikegami (Pope) on Sep 17, 2012 at 23:00 UTC
    That's not Perl code.
Re: leading and trailing @ symbols in variable declarations
by Argel (Prior) on Sep 17, 2012 at 23:25 UTC
Re: leading and trailing @ symbols in variable declarations
by MidLifeXis (Prior) on Sep 18, 2012 at 13:13 UTC

    Perhaps that is Yet Another Template System. I have seen (and used) that type of a construct when doing search and replace type building of a script at the shell level.

    sed -e 's,@perl_path@,/my/path/to/perl,g; ...'

    --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994145]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2014-07-26 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (176 votes), past polls