in reply to Re^6: Split tab-separated file into separate files, based on column name (tangent = open on demand => stream-like)
in thread Split tab-separated file into separate files, based on column name
But it's a two-edged sword which should be handled with care.
Overloading an operator because it looks like another syntax is not a good idea ( here >> )
A good example for overloading are set operations, because the logic is "compatible".
- X * Y intersection
- X + Y join
- X - Y difference
- - X complement
Bitwise ~ | & ^ etc. might be another option tho ... and the analogy between sets and bit vectors might help.
Found Set::Scalar which has a good set of overloaded operators.
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|Replies are listed 'Best First'.|
Re^8: Split tab-separated file into separate files, based on column name ( Operator overloading )
by Eily (Monsignor) on Aug 27, 2020 at 12:30 UTC
by LanX (Sage) on Aug 27, 2020 at 12:50 UTC