>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:
SHC> On 10-12-27 07:11 PM, Uri Guttman wrote: >>>>>>> "SHC" == Shawn H Corey<shawnhco...@gmail.com> writes: SHC> On 10-12-27 06:30 PM, Uri Guttman wrote: >> >> yes, you have misunderstood it. where did you read or learn that /x >> >> ignores whitespace in the data? >> SHC> He probably got the idea since other non-alphanumeric characters in a SHC> variable must be escaped; un-escaped ones act like meta-characters. >> >> that doesn't make any sense regarding the use of /x. SHC> Yes, it does. Meta-characters in a variable act the same as in a SHC> pattern. Whitespace in a variable does NOT act the same as in a SHC> pattern. Why? because you enabled /x. still no reason for the OP to read the docs and not understand /x. they even cover escaping whitespace so it WILL match. on top of that, ignoring whitespace in the data is trivial. either first remove it all with tr/// or use \s* where you think whitespace may happen. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/