2011/6/21 eventual <[email protected]>: > 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
