- or download this
# code 1
$str = "abc";
...
print $1 if $str =~ ?(.)?g;
print $1 if $str =~ ?(.)?g;
print $1 if $str =~ ?(.)?g;
- or download this
$str = "abc";
for (1, 2, 3) {
$str =~ ?(.)?g;
print $1;
}
- or download this
$str = "abc";
{
...
print $_1;
}
}