Tip #1 from the Basic debugging checklist: warnings
Useless use of numeric eq (==) in void context at ... Useless use of array element in void context at ... 6|7 6|7 0|1 1|2 Use of uninitialized value in numeric eq (==) at ... 2|3 3|4 4|5
I believe /./g; is evaluated in scalar context, and only one match is done, not 7.
(/./g); is also evaluated in scalar context, and picks up at the position of the previous match.
In reply to Re: nooby question about @+, @-
by toolic
in thread nooby question about @+, @-
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |