I have following command, and I put variables "$bus" and "$value" in sub busbitFill.
And the sub can eat $bus successfully, but $value is not working. Please tell me where I was wrong....
....some code that generate $index, $bus and $value...
print "index=$index\n bus=$bus\n value=$value\n"; #<=all variable printed successfully
&busbitFill($bus, @array0, $value);
sub busbitFill {
my($bus, @array, $val) = @_;
print "val1: $val\n"; #<=but when $value goes into sub "busbitFill"
} # the sub cannot print $val
<This is the printed result for first row in above code>
index=AA[0]
bus=[2:0]
value=110