title: Is space supposed to be ignored between a sigil and its variable name?
body: <p>I just discovered that perl ignores space between the sigil and its variable name and was wondering if someone could tell me if this was the expected behaviour. I've never run into this before and it can result in strange behaviour inside of strings.</p>
  
  <p>For example, in the following code, $bar will end up with the value 'foo':</p>
  
  <pre><code>my $foo = 'foo';
  my $bar = "$                     foo";
  </code></pre>
  
  <p>This also works with variable declarations:</p>
  
  <pre><code>my $
  
  
  
  bar = "foo\n";
  print $bar;
  </code></pre>
  
  <p>The second case doesn't really matter much to me but in the case of string interpolation this can lead to very confusing behaviour. Anyone know anything about this?</p>