Welcome to the Monastery | |
PerlMonks |
Re^8: Use of wantarray Considered Harmfulby ikegami (Patriarch) |
on Dec 19, 2008 at 23:04 UTC ( [id://731686]=note: print w/replies, xml ) | Need Help?? |
Aside from the fact that it's impossible for an operator to return a list in scalar context, m//g behaves quite differently in scalar and in list context. It can act as an iterator (which I think you consider as being the same as a list for the discussion):
But it's not an iterator in this tokenizer:
In Section
Meditations
|
|