Determining the meaning of a subscript...

2002-10-29 Thread David Buddrige
Hi all, I am learning Perl in order to extend a program one of my collegues has written. In the code I have come across these two statements: $TO_sub="$;#"; $TC_sub="$;@"; Looking up "$;" in "Perl in a Nutshell", it says that "$;" is a subscript seperator for multi-dimentional arrays, howeve

Re: Determining the meaning of a subscript...

2002-10-30 Thread Nigel Wetters
On Wed, 2002-10-30 at 07:49, David Buddrige wrote: > $TO_sub="$;#"; > $TC_sub="$;@"; obscure. $; is by default "\034"; thus $TO_sub is "\034#" and $TO_sub is "\034@". I guess your colleague has manually constructing her own multidimensional hashes or arrays using these subscript separators. With

Re: Determining the meaning of a subscript...

2002-10-30 Thread David Buddrige
Thanks Nigel. The program that my collegue wrote parses a C++ file, and allows us to re-arrange the comments contained in it based on their location in relation to various code. We have a bunch of company-standard comments in this code, but we are now being required to move to doc++ as our do