I have a bit of confusion understanding the result from using a split function with '+' operator
Here's my code. @fields =split /(a|b)+/, "a12cdabab"; for my $val(@fields) { print "Value:$val\n"; }
This prints the answer as : Value: Value:a Value:12cd Value:b Can someone please explain how perl produces this output?
In reply to Split operator in perl by binesh_28
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |