in reply to processing on the command line

Very simply:

foreach $item(@ARGV){ print $item,"\n"; }
When I run that code with:
C:\Documents and Settings\Administrator\My Documents>foo.pl "c:\Docume +nts and Settings\Administrator\My Documents"
I very predictably get:
c:\Documents and Settings\Administrator\My Documents
Remove the bounding quotes and I get
c:\Documents and Settings\Administrator\My Documents
Why? Very simple: your (or Microsoft's shell more correctly) interprets the spaces and feeds things separated by spaces as separate arguments. If your script is to deal with that then it is up to you as a programmer to deal with that.


Peter L. Berghold -- Unix Professional
Peter at Berghold dot Net
   Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.