Logo

Programming-Idioms

History of Idiom 110 > diff from v4 to v5

Edit summary for version 5 by :
New Perl implementation by user [Roboticus]

Version 4

2016-01-06, 23:16:58

Version 5

2016-01-07, 19:40:14

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Code
$blank = !$s;