Ive written a script that performs various security functions on a network i am part of. I've just made a modification where I access various pre-defined channels with the eggie for various things. I have this list set up in a variable as such.
Code: Select all
set cycle_channels {
"#channel1"
"#channel2"
"#channel3"
}
The code that I use with this list works fine, but what I want to do is add 2 other vraibales that will be associated with each channel. Something like:
Code: Select all
array set cycle_channels {
"#channel1" 0 0
"#channel2" 0 0
"#channel3" 0 0
}
The second value would be a counter, and the third would contain a time stamp. I
think
that I have defined an array properly.
Would I incriment the counter of the first channel like this????
Or would you use arrayget, to set a variable. incrament the value, then array set? And shoot, Im not even sure what the syntex on this would be.
God, I hate asking stupid questions.
;o(((
droolin