probably he was following some kind of house standard or was used to doing it that way with shell script, in which is a little more common.
the reason remains the same, you can see when the variable name starts and stops, that's all. > -----Original Message----- > From: Kevin Old [SMTP:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 11:57 AM > To: [EMAIL PROTECTED] > Subject: Variables and Modules > > Hello all, > > Quick question about variables. I am editing a few scripts written by > another programmer and he programs every variable surrounded in brackets, > like ${var_name}. > > Is there any advantage to this? > > The only reason I can think that he is doing this is because of the module > > that is used. Maybe to localize the variable or something like that. > > But, I thought that all variables not specified by a module > ($Mod_name::var_name) were localized to that script. > > Any ideas? > > Any help is appreciated > > Kevin > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]