944,219 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 2730
  • Perl RSS
Sep 16th, 2006
0

volatile variable

Expand Post »
Hi all, Is there anything in perl to declare a variable volatile...I need the value of a variable to change immeadiately when I change.help out pls.
Similar Threads
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
kararu is offline Offline
50 posts
since Sep 2006
Sep 16th, 2006
0

Re: volatile variable

variables always change when you redefine them or use operators or functions on them. Not sure what your question is.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Sep 17th, 2006
0

Re: volatile variable

Actually a variable will stay in register for a while and then be put in memory..I need the memory location to change immediately when I change the variable.(Like volatile variable in C)
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
kararu is offline Offline
50 posts
since Sep 2006
Sep 17th, 2006
0

Re: volatile variable

I don't know how to do that in perl or why you would even need to do it but I assume you know why and have a legitimate reason. Maybe someone else will know.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Sep 17th, 2006
0

Re: volatile variable

comment removed, irrelevant.
Last edited by KevinADC; Sep 17th, 2006 at 9:06 pm.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Sep 18th, 2006
0

Re: volatile variable

I would suggest searching www.cpan.org for some memory management module that might provide this functionality. Even if it is possible from straight perl, it is probably complicated or convoluted and a module from CPAN would probably make it a bit simpler to use (or at least let you study it to find out how to do it on your own).
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: perl tk widget destroy
Next Thread in Perl Forum Timeline: Perl Error Message-assistance requested





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC