Syntactic Confectionery Delight | |
PerlMonks |
Re^3: How can I create an iterator that works inside foreach() (updated)by AnomalousMonk (Archbishop) |
on Nov 05, 2022 at 03:27 UTC ( [id://11147981]=note: print w/replies, xml ) | Need Help?? |
The & prototype was the secret sauce! Actually, I think wantarray is the secret sauce as it allows the iterator function to discriminate list vs. scalar context. :) Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|