On Friday, January 3, 2003, at 08:55 AM, Smylers wrote:

Murat Ünalan wrote:

print "date" if $var is int( 1..31 );
I don't think that the type needs to be specified here, especially if
the variable has already been declared to be of the required type, so a
junction should be sufficient:

  print "date" if $var == any(1 .. 31);
I was under the impression the "smart match" operator would cover that implicitly.

print "date" if $var =~ 1..31;

Has this changed somewhere without my noticing it?

Hmmm... thinking about another form of the above, I wonder... is there a postfix version of "given"?

print "date" if 1..31 given $var;

Reply via email to