|Syntactic Confectionery Delight|
Escaping white space with qw//by elbie (Curate)
|on Aug 10, 2001 at 21:52 UTC||Need Help??|
elbie has asked for the wisdom of the Perl Monks concerning the following question:
Hi all. I have a long list of values which I want to put into an array, but some of those values have spaces in them.
It would be easiest, I feel, if I could just use qw//, but I can't figure out how to get around the splitting on whitespace.
Right now, my best solution that I can think of would be to use something in place of whitespace, and do a regex on the array later:
But this could get rather cumbersome for large arrays, and at some point in the future, I might need to use whatever character I pick within an element of the array. (Well, okay, I can pick something weird like \007, but ya never know.)
Is there another way to do this?