title: Check for spaces in perl using regex match in perl
body: <p>I have a variable how do I use the regex in perl to check if a string has spaces in it or not ?  For ex:</p>
  
  <pre><code>$test = "abc small ThisIsAVeryLongUnbreakableStringWhichIsBiggerThan20Characters";
  </code></pre>
  
  <p>So for this string it should check if any word in the string is not bigger than some x characters.</p>