Advertisement
happy-barney

heredoc - interpolation

Dec 13th, 2020
1,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.17 KB | None | 0 0
  1. # Final $ should be \$ or $name at ..., near "BAR$
  2. my $BAR = 'xxx'; say <<"BAR";
  3. BAR$
  4. BAR
  5. BAR
  6.  
  7. # works as expected
  8. my $FOO = 'xxx'; say <<"BAR";
  9. BAR$
  10. FOO
  11. BAR
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement