> I'm trying to think of common places where C<sort @inplace> might
> accidentally be used in list context, such as the end of a block,
How about:
sub sort_lists {
for (@_) {
sort @$_;
}
}
yes, it's somewhat silly because it's so bare-bones, but list context
propagates easily and deeply, and I think the above qualifies as: "I
couldn't tell".
> I'm also thinking if there's any functionality in Perl that is
> analogous. ie. in one context it leaves its arguments alone, in
> another it modifies them.
It looks very dangerously to me ;)
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
- Re: Sorting in-place (SOLVED? No, further mys... Abigail
- Re: Sorting in-place, still a wish *sigh* Clinton A . Pierce
- Re: Sorting in-place (SOLVED? No, further... Bernie Cosell
- Re: Sorting in-place (SOLVED? No, fur... Bart Lateur
- Re: Sorting in-place (SOLVED? No... Clinton A . Pierce
- Re: Sorting in-place (SOLVED? No... Bernie Cosell
- Re: Sorting in-place (SOLVED?... Abigail
- Re: Sorting in-place (SOLVED?... Bernie Cosell
- Re: Sorting in-place (SOLVED?... Abigail
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place pcg
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place pcg
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place Clinton A . Pierce
- Re: Sorting in-place Bart Lateur
- Re: Sorting in-place pcg
- Re: Sorting in-place Abigail
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place Ilmari Karonen
