Michael G Schwern <[EMAIL PROTECTED]> writes: > so if $key does not exist you'll get 'some default' instead of undef.
Except that a more common case is my $foo = $hash{foo} || 'some default'; my $bar = $hash{bar} || 'some other default'; -- Johan
Michael G Schwern <[EMAIL PROTECTED]> writes: > so if $key does not exist you'll get 'some default' instead of undef.
Except that a more common case is my $foo = $hash{foo} || 'some default'; my $bar = $hash{bar} || 'some other default'; -- Johan