in reply to Why does the array not reset each time I call the function?
The style of your code in assignment to @add_machines is quite bothersome while reading it here on web, with my favourite editor inaccessible.
Please add a space after a comma (if not before a comma too) so that long lines fold on space break, making reading possible.
Note also that you do not need to escape characters, other than single quote itself, inside single quotes.
|
|---|