Hope you can help me out.
I have got the next code this code is decoding part of a number the hole number is 92259. The problem is that $1 = standing for the numbers 59 but I want to have $2 for the 5 and $3 for the 9, please help me to change this code.
92259 now 59
if ($NINE_CODE=~/^22(.+)$/) { $NINE_CODE="$SP_WAVES [$1]"; }
must be 92259 $2=5 $3=9
if ($NINE_CODE=~/^22(.+)$/) { $NINE_CODE="$SP_WAVES[$2], zicht $SP_WATER_VIS[$3]"; }
Hope you understand my needs and will help me.
Greatings,
Marcel
I have got the next code this code is decoding part of a number the hole number is 92259. The problem is that $1 = standing for the numbers 59 but I want to have $2 for the 5 and $3 for the 9, please help me to change this code.
92259 now 59
if ($NINE_CODE=~/^22(.+)$/) { $NINE_CODE="$SP_WAVES [$1]"; }
must be 92259 $2=5 $3=9
if ($NINE_CODE=~/^22(.+)$/) { $NINE_CODE="$SP_WAVES[$2], zicht $SP_WATER_VIS[$3]"; }
Hope you understand my needs and will help me.
Greatings,
Marcel