neoflash
Advanced Member level 1
I have trouble with processing variable names with [] by itself since [ ] have special meaning in perl programming.
However, those variable names are read in from other sources and therefore can't be changed.
How can we effectively deal with them without too much trouble?
Added after 2 hours 57 minutes:
Let me specify it a bit more:
if ($p_line =~ / $line[1] /)
where $p_line has a variable as abc[1]. My problem is that it never match with $line[1] which is also abc[1].
However, those variable names are read in from other sources and therefore can't be changed.
How can we effectively deal with them without too much trouble?
Added after 2 hours 57 minutes:
Let me specify it a bit more:
if ($p_line =~ / $line[1] /)
where $p_line has a variable as abc[1]. My problem is that it never match with $line[1] which is also abc[1].