Simple Getopt::Long Question
Posted on 2005-03-03
#Get command line parameters
print "City: $City\n";
print "State: $State\n";
If I call this using the following: Test.pl -City Boston -State MA
The output is correct
If I use a city with a space for exampe: Test.pl -City New York -State NY
The output only grabs 'new' for the city name.
How can I pass in a string with a space in it on the command line using GetOpt:Long?