I have a simple perl function which I want to call directly:
This was so that I could see what was being passed to the function.
but, when I called it:
MUSHClient said there was an error.
After agonizing for a bit and wondering what in my script could be the problem, I tried to put the arguments in quotes:
And that worked fine.
So, I want to know...
Am I missing a setting that only allows one argument to scripts?
Is there something I can do to avoid having to quote multiple arguments (like quoting them automatically)?
What is being done with the additional arguments on the line?
sub test {
foreach my $a (@_) {
$world->note("$a");
}
$world->note("done!");
}
$world->note("hello");
This was so that I could see what was being passed to the function.
but, when I called it:
Quote:
/test 1 2 3 test test 34
/test 1 2 3 test test 34
MUSHClient said there was an error.
After agonizing for a bit and wondering what in my script could be the problem, I tried to put the arguments in quotes:
Quote:
/test "1 2 3 test test 34"
/test "1 2 3 test test 34"
And that worked fine.
So, I want to know...
Am I missing a setting that only allows one argument to scripts?
Is there something I can do to avoid having to quote multiple arguments (like quoting them automatically)?
What is being done with the additional arguments on the line?