Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Re: Re: spaces in filenamesby MarkM (Curate) |
on Feb 03, 2003 at 03:46 UTC ( [id://232129]=note: print w/replies, xml ) | Need Help?? |
You are correct that "\W" produces a different result from /\W/ as a first argument to split(). You are not correct in concluding that this means split() is assuming that a quoted string is a literal. Examples:
In both cases, the string is being interpretted as a regular expression. As a string, a different set of interpolation rules apply.
In Section
Seekers of Perl Wisdom
|
|