home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
OffTopic
PERL: Global constant
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="HTPCSourcer" data-source="post: 1187799" data-attributes="member: 74879"><p>I figured that it's a P <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>The underlying challenge is to have a variable at level 1 from which sub modules get called. Indeed the subroutine would not know the value that was defined one level higher, yet other programming language allow the definition of global values. </p><p></p><p>I have tried </p><p>[code]use constant IP => ...[/code]</p><p>But it would not be known in loaded pm modules. I am probably doing something wrong.</p><p></p><p>Not a major thing. I stumbled again over it because I moved the vFHEM server to a Raspi Pi that got a new IP address and then forgot to update each occurrence of it.</p><p></p><p>So your link is not exactly what I am looking for, but it' s a possibility.</p></blockquote><p></p>
[QUOTE="HTPCSourcer, post: 1187799, member: 74879"] I figured that it's a P ;) The underlying challenge is to have a variable at level 1 from which sub modules get called. Indeed the subroutine would not know the value that was defined one level higher, yet other programming language allow the definition of global values. I have tried [code]use constant IP => ...[/code] But it would not be known in loaded pm modules. I am probably doing something wrong. Not a major thing. I stumbled again over it because I moved the vFHEM server to a Raspi Pi that got a new IP address and then forgot to update each occurrence of it. So your link is not exactly what I am looking for, but it' s a possibility. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
OffTopic
PERL: Global constant
Contact us
RSS
Top
Bottom