> So, to match $foo's colour against $bar, I'd say
   > 
   >     $bar =~ /$foo.colour/;

No, you need the sub call parens as well:

         $bar =~ /$foo.colour()/;
  

   > Great, but how do I match $foo followed by any character followed by the
   > literal "colour"?
   
         $bar =~ /$foo.colour/;


   > Would I have to use "\Q"?

No. You could use the $(...) scalar interpolator instead:

         $bar =~ /$($foo).colour/;


   > >    >     print "ok 5" unless ref ($a=(1,2,3))'
   >                         ^^^^^^

Sorry, in my haste I missed that twist. You are, of course, correct.


   > >    > Oh, hrm. Shouldn't it be $a{test2}?
   > > Yes. Or $a.{test}
   > 
   > So "." isn't necessarily the "property" operator, then? OK.
   > Time to spend more quality time with YACC. :(

Now there's an oxymoron, if ever I heard one. ;-)

Damian

Reply via email to