On Thu, 2004-05-13 at 14:12, anish mehta wrote: > Hi !! > > Pls tell me what are the tied variables in perl. I have tried it to read it > from book but some words from the experts will be quite useful to make > further progress and clarity in understanding those in general terms.
By tying a variable you intercept all read/write accesses to a variable Now Assume You have a variable called $file_content and you can tie it ( using some scalar tie .. you can easily get docs ) to a file , say /tmp/foo , such a way that whenever you read the variable $file_content the content of /tmp/foo is read and whenever you update the the variable the file /tmp/foo is overwritten There are many ways you can use ties , the perl cookbook from oreilly has excellent examples Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>