On Sat, 4 Jan 2003, Murat Ünalan wrote: > > print "creditcard" if $var == CreditCard( 'VISA' ); > > wich should do a mod10 on $var and then match a regex or something. > > I think one could say "CreditCard( 'VISA' )" is then the property. And > after > reading further seeing it could be smart matched like: > > print "creditcard" if $var ~~ CreditCard( 'VISA' ); > > Brought to a point: Properties could be also smart matched.
Wouldn't it be easier to say: print "creditcard" if CreditCard( $var ) eq 'VISA'; ~ John Williams