use \v instead. \R was introduced in perl 5.10.0.