Hi Peter Rabbitson, you wrote:

$str =~ s/          / /i;
$str =~ s/         / /i;
$str =~ s/        / /i;
$str =~ s/       / /i;
$str =~ s/      / /i;
$str =~ s/     / /i;
$str =~ s/    / /i;
$str =~ s/   / /i;
$str =~ s/  / /i;

is the same as:

$str =~ s/\s{2,10}/ /;

Read perldoc perlre, especially the part about quantifiers.

Thanks for the pointer! I'll run through the doc so I can understand how to build these sorts of statements!


Cheers!
--
Dale


-- 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