That's not fun yet. Same number of characters, all constant, no
variables. But yet, the parts are separable now. Watch:
- $x = "Cow";
- $x->speak; # invokes Cow->speak
+ $a = "Cow";
+ $a->speak; # invokes Cow->speak
Ahh! Now that the package name has been parted from the subroutine
name, we can use a variable package name. And this time, we've got
or the equivalent:
- $x = "Class";
- $x->method(@args);
+ $a = "Class";
+ $a->method(@args);
which constructs an argument list of: