Author Topic: Deleting all variables after a ::  (Read 586 times)

Let's say I have a few variables like so...
Code: [Select]
$someGlobal::someSub::someOtherSub[0, 0] = 1;
$someGlobal::someSub::someOtherSub[1, 0] = 2;
$someGlobal::someSub::someOtherSub[2, 4] = 453;
... and let's say I have a TON of them after that that follow the same general format.

Is there any way to, essentially, delete the contents of 'someSub' to get rid of all of these? Since it's a pseudo-array with two dimensions, i'd have to make an EXTREMELY lengthy for loop otherwise.

deleteVariables("$someGlobal::someSub::*");