2011/6/21 eventual <eventualde...@yahoo.com>: > Hi, > Looking at the script below, how do I write a range of 10 to 80 as a regular > expression. > I tried [10 - 80] but it wont work.
$ perl -le '$x=70; print "true" if grep {/^$x$/} 10 .. 80' true -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/