in reply to Re^2: how can i split a string to an array and convert it into regular expression
in thread how can i split a string to an array and convert it into regular expression
To seperate the string into individual characters, you can use
ormy @array = $string =~ /./g;
ormy @array = map /./g, $string;
my @array = split(//, $string);
|
|---|