I\'m making a perl script which uses Getopt::Long to parse command line arguments. However, I have an argument which can accept a string (with spaces). How can I get the who
You need to either put quotes around the argument:
./script.pl --string="blah blah blah blah yup" --another-opt
or escape the spaces:
./script.pl --string=blah\ blah\ blah\ blah\ yup --another-opt