The best non-regex way?The best way to add 10 to a number is to use +
But, I suspect your example is a much-reduced version of a larger problem you are trying to solve.use warnings; use strict; my $x = 123; my $y = $x + 10; print $y;
In reply to Re: perl code in regex replacement
by toolic
in thread perl code in regex replacement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |