> > In the above case int($var) == $var returns true when I > would want it > > to return false. > > print "date" if $var.isa(int); > print "date" if isa $var: int; > print "date" if $var ~~ int; > > Those should all work. IMO the first reads the best. That > will also work for C<Int>s, as C<Int> is a subclass of C<int> > (I think). > > Luke
and that should also work print "date" if $var ~~ PropertyDate( 'monthday' ); smart match against a property. 'isa' wouldn't help then ? Murat