learingperl01
MIS
Hello,
Can't figure out how to save something which I am currently printing to a variable.
I have to captures ()() which I am converting data in the second capture from hex
Thanks for the help.
Example:
Can't figure out how to save something which I am currently printing to a variable.
I have to captures ()() which I am converting data in the second capture from hex
Thanks for the help.
Example:
Code:
while ( $string =~ /(capture1)(capture2)/g ) {
print "$1".chr(hex($2));
#Trying to save that data to a variable
#$capturedData = "$1".chr(hex($2)); #This does not work, can't figure out how to save the converted data to a var instead of printing
}