locked_user sundialsvc4 has asked for the wisdom of the Perl Monks concerning the following question:
Now here’s a weird one for ya ... (Environment: OS/X Snow Leopard)
I’ve got a legacy Perl application which, in a BEGIN block, looks for a particular environment-variable. Therefore, a statement like use name_of_this_module; won’t succeed unless the environment variable exists.
And this prevents something that is “nice to have,” namely, Eclipse’s syntax-checking. That is, unless I can figure out a(n easy) way to define an environment variable either within Eclipse, or when Eclipse launches.
I have already put the appropriate export statements in the .profile shell-script...
This is, as I said, just a “nice to have,” but I idly wonder if it could easily be done ... y’know, without defining a shell-script to launch Eclipse. (Or, is that “The Way?”)
Edit: “Just Google It™” ...
Fortunately, I caught myself before pressing “Post” ... But now, having found the problem (and having solved it), maybe someone else wants to know, too.
Here are some directly relevant web-pages that actually address this problem, thoroughly and completely:
Perhaps this “discovery” will be useful. (Note that you must install Apple's (free) “Developer Tools” in order to get the PList editor, although the format is “just XML ...”)
Now You Know.™
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting environment-variables in Eclipse (EPIC)?
by ikegami (Patriarch) on Mar 15, 2011 at 22:39 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 16, 2011 at 15:26 UTC | |
|
Re: Setting environment-variables in Eclipse (EPIC)? [SOLVED]
by Aaronrp (Scribe) on Mar 16, 2011 at 00:57 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 16, 2011 at 15:29 UTC |