Quickly: Using a sub as a method
![](/posts/2019/10/03/quickly-using-a-sub-as-a-method/cover-thomas-haas-Rs5FCVANby0-unsplash_hub334f5085e7866a88b0f95d47f460515_1685171_140x140_fill_q75_box_smart1.jpg)
Quickly now, let’s consider the difference between a sub and a method. When programming Perl 6, the only significant difference between a sub and a method is that a method always takes at least one positional argument whereas a sub only takes what’s listed in the parameter list. In a method, the required first positional parameter is not passed as part of the parameter list, but assigned to self.
For example,
ยป
read more