in reply to Re^2: More efficient way to truncate long strings of the same character
in thread More efficient way to truncate long strings of the same character
It's not necessary.
>perl -e"$_='a'; print qr/$_{3}/" (?-xism:a{3})
And beyond being unnecessary, it will never help either. If you were to do ${_}{...} to prevent $_{...} from beint treated as a hash element, it still wouldn't do what you want. See Re: Of scalars, hashes, quantifiers, and regexen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: More efficient way to truncate long strings of the same character
by GrandFather (Saint) on Oct 31, 2008 at 00:00 UTC | |
by ikegami (Patriarch) on Oct 31, 2008 at 00:05 UTC |