Applying substitution (s///) to @array will act on scalar(@array) at skript.pl line 9.