Skip to content

Instantly share code, notes, and snippets.

@leejo
Created September 11, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leejo/78f0308f7b757149afbda218def34a0b to your computer and use it in GitHub Desktop.
Save leejo/78f0308f7b757149afbda218def34a0b to your computer and use it in GitHub Desktop.
string interpolation with double colon change
payprop@ubuntu-xenial:/tmp$ /opt/tools/bin/perl5.24.0 -w -E'my $foo = "works"; my $bar ="really"; say "$foo::$bar";'
works::really
payprop@ubuntu-xenial:/tmp$ /opt/tools/bin/perl5.28.0 -w -E'my $foo = "works"; my $bar ="really"; say "$foo::$bar";'
Use of uninitialized value $foo:: in concatenation (.) or string at -e line 1.
really
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment