Like Michael Fowler wrote, the angle operators, when used like this, 
glob file names.  But since you don't have any special patterns it's 
just returning the list of filenames from inside the '<' and '>'.  If 
you do a
   print "$_\n";
inside the while loop you'll see that the strings hitting the regex are
i
am
fred
flinstone

so you never get a pattern with whitespace in it like 'fred    
flintstone' so you always get 'no match'

Hope this helps,
Peter C.

> 
> #!/usr/bin/perl -w
> while ( < i am fred     flintstone >) {
> if (/\b(fred|wilma)\s+flintstone\b/) {
> print "matched: |$`<$&>$'|\n";
> } else {
> print "no match.\n";
> }
> }
>   
> i get:  
> no match.
> no match.
> no match.
> no match.
> 
> Im on Windows ME, MS-DOS box. Thank you for your time!
> 
> egorbrandtGet more from the Web.  FREE MSN Explorer download : 
>http://explorer.msn.com
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to