Perl training - Geekuni blog

Sign-up for the latest news and some useful tips along the way.

Sunday, 1 February 2015

How to check boolean equality in Perl




Boolean equality can be checked in Perl with


!($x xor $y)


or with



!$x == !$y






And the winner is...


Read more »
Posted by Andrew Solomon at 16:33 1 comment:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: boolean, if statement, logic, perl, xor
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Geekuni

About Geekuni
For onboarding new hires and cross-training developers into Perl, rapidly expand your Perl team with Geekuni's online interactive training. Click here to find out more.

Blog Archive

  • ►  2021 (1)
    • ►  May (1)
  • ►  2019 (2)
    • ►  July (1)
    • ►  May (1)
  • ►  2018 (2)
    • ►  October (1)
    • ►  January (1)
  • ►  2017 (3)
    • ►  December (1)
    • ►  October (2)
  • ►  2016 (4)
    • ►  April (1)
    • ►  March (1)
    • ►  January (2)
  • ▼  2015 (12)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ▼  February (1)
      • How to check boolean equality in Perl
  • ►  2014 (7)
    • ►  November (1)
    • ►  July (2)
    • ►  June (2)
    • ►  February (2)
  • ►  2013 (1)
    • ►  December (1)

Sponsor

Sponsor

Sponsor

Sponsor

Sponsor

Sponsor
Picture Window theme. Powered by Blogger.