But is not really "programmatically correct" =)sub reality_test { my ( $var_name , $min , $max ) = @_; eval "print q($var_name is out of range !) if $var_name < $min or +$var_name > $max" } reality_test( '$foo' , 10 , 30 );
In reply to Re: Can Perl add single quotes?
by Gloom
in thread Can Perl add single quotes?
by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |