in reply to Setting end position for the regexp engine
Let function substr return a lvalue which could be store in a (new type of?) scalar. The lvalue can then be used together with =~.
That is already possible.
C:\test>p1 $s = 'This is a string (with a bit in the middle) before the string en +ds';; $r = \substr $s, 18, 24;; print $$r;; with a bit in the middle $$r =~ s[([a-z]+)][\U$1]g;; print $s;; This is a string (WITH A BIT IN THE MIDDLE) before the string ends
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Setting end position for the regexp engine using LVALUE
by bojinlund (Monsignor) on Sep 19, 2013 at 07:37 UTC | |
by ikegami (Patriarch) on Sep 19, 2013 at 23:31 UTC | |
by BrowserUk (Patriarch) on Sep 19, 2013 at 07:54 UTC |
In Section
Meditations