On 2019-12-10 14:40, Rocco Caputo wrote:
It seems that you're saying the difference between a method and other kinds of routines is that methods are "fed" something?
Hi Rocco, Indeed! It is my sloppy way of saying what a method is. I am not using programming terminology. My purpose was to stay away from official jargon and use common terms. The data, in the case the string to be searched is fed into the method to be evaluated. Now the "official" description would be something like https://docs.raku.org/language/101-basics#array,_method_and_invocant The right-hand side calls a method — a named group of behavior — named get on the filehandle stored in $file. The get method reads and returns one line from the file, removing the line ending. If you print the contents of $file after calling get, you will see that the first line is no longer in there. words is also a method, called on the string returned from get. words decomposes its invocant — the string on which it operates — into a list of words, which here means strings separated by whitespace That would require a keeper file all on its own. "fed" got to the point a lot quicker. Thank you for the tips! -T