NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Since $_ is global… (Score:1)
couldn't you write…
…and have
end_of_foldundef $_?If you used a different localised variable, you might also be able to unfold undef values. But I don't really know if that is wanted.
--phaylon
Ordinary morality is for ordinary people. -- Aleister Crowley
Reply to This
Re: (Score:1)
That makes it seem like the
end_of_foldfunction is somehow special. I’d prefer people who use this to understand exactly how it works, and avoiding low-gain abstractions helps.