in reply to Capture string that starts with #

We can call system() in the following way:
system("myscript.pl set a \\#value");