in reply to Re: Iterator to parse multiline string with \\n terminator
in thread Iterator to parse multiline string with \\n terminator
What exactly makes it not a closure? Is it that I'm passing a variable each time? If it was a new copy of $fh, wouldn't $fh_iterator->($fh) always return the same line (since it's creating a copy of the $fh object, on next passing it would be a copy of the original)?
Thanks for setting me straight, I always like learning new things.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Iterator to parse multiline string with \\n terminator
by Laurent_R (Canon) on Oct 06, 2013 at 09:29 UTC | |
by three18ti (Monk) on Oct 06, 2013 at 10:57 UTC |
In Section
Seekers of Perl Wisdom