Can someone help me in fixing me for the following code. I want to extract two numbers from the input string.
input string [7:0] xxxx
I want "7" and "0" to be loaded into two variables (min and max). I'm trying to achieve this
my ($max, $min);
($max, $min) = $_ =~ /[(\d+):(\d+)]/;
print "min: $min max $max\n";
I get the result as
Use of uninitialized value in concatenation (.) or string at constraints.pl line 16, <PH> line 165.
min: max: 1
considers
source
share