In the following why am I getting '23' Is 23 being treated as a string? #!/usr/bin/perl -w use strict;
my $s = ' 23 one two three'; $s =~ s/(\w{1,10}).+/$1/; print $s; --- my $s = 'one two three'; $s =~ s/(\w)/$1/; print $s; Returns 'one two three', I was looking for it to match 'one' and stop! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]