I find myself doing the same thing repeatedly so I would like to make a method with 3 different variables to pass in as the parameters. Is there a way to do this, I could not find a subroutine example online to see the correct format. The format below is wrong and it shows what I'm looking for
Thank you
example:
Extract($filename, $filepath, $regex) { do stuff }
In reply to Subroutines with Parameters by MoniqueLT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |