Aaron Sherman writes:
: On Thu, 2002-02-21 at 19:49, Larry Wall wrote:
: > David M. Lloyd writes:
: > : On Thu, 21 Feb 2002, Sam Vilain wrote:
: > :
: > : > I can't count the number of times I've had to do something like:
: > : >
: > : > if (defined $foo and $foo ne "bar") { }
: > : >
: > : > t
On Thu, 2002-02-21 at 19:49, Larry Wall wrote:
> David M. Lloyd writes:
> : On Thu, 21 Feb 2002, Sam Vilain wrote:
> :
> : > I can't count the number of times I've had to do something like:
> : >
> : > if (defined $foo and $foo ne "bar") { }
> : >
> : > to avoid my program writing garbage to ST
David M. Lloyd writes:
: On Thu, 21 Feb 2002, Sam Vilain wrote:
:
: > I can't count the number of times I've had to do something like:
: >
: > if (defined $foo and $foo ne "bar") { }
: >
: > to avoid my program writing garbage to STDERR.
:
: Of course you will now be able to say:
:
: if ($foo
On Thu, 21 Feb 2002, Sam Vilain wrote:
> I can't count the number of times I've had to do something like:
>
> if (defined $foo and $foo ne "bar") { }
>
> to avoid my program writing garbage to STDERR.
Of course you will now be able to say:
if ($foo // "" ne "bar") { }
Right?
- D
<[EMAIL PR
Aaron Sherman <[EMAIL PROTECTED]> wrote:
> An off-the-wall thought... If this is not the "expected" condition,
> should it have the extra meaning of an assertion? For example,
> could set $! to 'defined $foo but $foo eq ""' and, if -w was in use,
> issue 'warn "Exceptional condition: $!"'
Intere