H
Hon Seng Phuah
Hi all,
I have a problem and have someone can help me.
I want to substract a numerica from a string.
For example:
A string is:
$line = RVW-30 {
I want to get 30 and store it into the $search_result.
I have code written as:
$search_result = ($line =~ /[-]([\d]+)/
I get this error message:
Use of uninitialized value at test.pl.
Any idea how to solve my problem. Thanks.
I have a problem and have someone can help me.
I want to substract a numerica from a string.
For example:
A string is:
$line = RVW-30 {
I want to get 30 and store it into the $search_result.
I have code written as:
$search_result = ($line =~ /[-]([\d]+)/
I get this error message:
Use of uninitialized value at test.pl.
Any idea how to solve my problem. Thanks.