Now @triplets contains the elements: atc cat ccc ttt aat But suppose i omit the global (g) qualifier/modifier:$string = "atccatccctttaat"; @triplets0 = $line =~ /(...)/g;
Now, I was expecting @triplets to consist of one element containing atc, but in fact it consists of one element containing 1. Could some kindly monk please explain why this is the case. -Rashmun$string = "atccatccctttaat"; @triplets0 = $line=~ /(...)/;
In reply to regex question by Rashmun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |