Chris Dutton wrote: > On Friday, January 3, 2003, at 08:55 AM, Smylers wrote: > > > Murat Ünalan wrote: > > > > > print "date" if $var is int( 1..31 ); > > > > print "date" if $var == any(1 .. 31); > > I was under the impression the "smart match" operator would cover that > implicitly.
Ah, yes; of course it does. > print "date" if $var =~ 1..31; > > Has this changed somewhere without my noticing it? No -- I just forgot about it. But now you bring it up, I do remember that the symbol changed, so I think it should be: print "date" if $var ~~ 1..31; Smylers