Maybe this then:
use strict; use warnings; my $input = "char(123)+char(107)+char(112)+char(42)"; my $output .= chr( $_ ) foreach $input =~ m/(\d+)/g; print "$output\n";
Dave
In reply to Re^3: parsing and evaluating a string
by davido
in thread parsing and evaluating a string
by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |