http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14185

M. Tompsett <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from M. Tompsett <[email protected]> ---
(In reply to Aleisha Amohia from comment #4)
> I'm still very new to perl and had seen this warn solved this way before so
> just did it again.

Ah, okay. :) I didn't know. When I started perl, I was unaware of //. The
difference between || and // is an important distinction to know. :)

undef || 'blah'; -- This is 'blah'
0     || 'blah'; -- This is 'blah'
''    || 'blah'; -- This is 'blah'
undef // 'blah'; -- This is 'blah'
0     // 'blah'; -- This is 0
''    // 'blah'; -- This is ''

As you can see // depends on whether the value is actually defined, not just
its truth value. So, you actually chose the better operator inadvertently. :)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to