in reply to Thoughts on some new operators for perl (6 or 7)
Really, the operator that I want is ''= or some such. This would be the equivalent of ||=, but for comparison against eq '' rather than boolean true-falseness.
I understand that there is a patch out there for a //= operator that does the same thing for undef, and I think that's really cool... but I'd still like to see the empty-string defaulting operator, as well.
------------ :Wq Not an editor command: Wq
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Thoughts on some new operators for perl (6 or 7)
by Juerd (Abbot) on Mar 10, 2004 at 08:10 UTC | |
by hardburn (Abbot) on Mar 10, 2004 at 14:07 UTC | |
by Juerd (Abbot) on Mar 10, 2004 at 14:14 UTC |
In Section
Meditations