T
Tony
Is there an elegant way to determine if a variable contains a plain
old value?
I'm working through an array, and lowercasing everything. I need to
skip over elements that are references, and the below seems a bit
ugly/prone to error:
if ($components[$i] !~ /(0x|SCALAR)/) {
$components[$i] = lc($components[$i]);
}
Thank you!
old value?
I'm working through an array, and lowercasing everything. I need to
skip over elements that are references, and the below seems a bit
ugly/prone to error:
if ($components[$i] !~ /(0x|SCALAR)/) {
$components[$i] = lc($components[$i]);
}
Thank you!