Getting all arguments passed to a subroutine as a string in Perl
问题 I am trying to write a function that can take all of its arguments and print them as a string exactly as they were entered. For example using the following function: test('arg1' => $arg1, 'arg2' => $arg2); I would like to get the following string inside of the function formatted EXACTLY as seen below : "'arg1' => $arg1, 'arg2' => $arg2" I want to do this so I can print all of the arguments the same way that they were entered for debugging/testing purposes. 回答1: Perl provides special debugging