in reply to What does \1 do?
Using a backslash "escapes" the following character. Given:
$n = "\1n\1r"; foreach (split //, $n) { print ++$x." ".ord($_)."\n"; }
...produces:
| 1 | 1 |
| 2 | 110 |
| 3 | 1 |
| 4 | 114 |
Check out Quote and Quote-like Operators in perlop.
Cē
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: What does \1 do?
by hv (Prior) on May 10, 2003 at 12:56 UTC |