print "$Robert has canned $name's sorry butt\n";
I tried running this in PERL and it yelled at me saying that it didn't like $name::s. I changed this line of code to:
print "$Robert has canned $name sorry butt\n";
And it worked fine 0_o An error in the tutorial perhaps?
Comment on Re: Variable Scoping in Perl: the basics
The apostrophe is the old-style package separator, still supported, so $name's is indeed equivalent to $name::s. By putting the curlies in there, you tell Perl exactly which part of the string to consider part of the variable name, and which part to consider a literal value.