Rob Dixon schreef:
> Dr.Ruud:

>>>    next if /^\s*$/;
>>
>>
>>       next if /^[[:blank:]]*$/ ;
>
> Why do you prefer /[[:blank:]]/ over /\s/ Ruud?

[[:blank:]] is TAB + SP only (for ASCII).


> I can't see the point
> in treating CR, LF and FF as valid data.

LF won't happen in this context ($ matches before LF).
If there would be CR of FF in the line, I wouldn't want to have them
been silently removed, because they shouldn't have been there in the
first place.


> Anyway, I would prefer:
>
>    next unless /\S/;

The "double negation" might scare some people.

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to