in reply to nooby question about @+, @-
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: nooby question about @+, @-
by ikegami (Patriarch) on Oct 28, 2014 at 13:27 UTC | |
by AnomalousMonk (Archbishop) on Oct 28, 2014 at 14:24 UTC | |
by ikegami (Patriarch) on Oct 28, 2014 at 17:54 UTC | |
|
Re^2: nooby question about @+, @-
by ikegami (Patriarch) on Oct 28, 2014 at 13:34 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |