in reply to problem with regex in perl script intended for 5.20,but while running on 5.10
The /r modifier for the tr/// and s/// operators has been added in version 5.14, see the perl 5.14 delta
Edit: you don't need it though, without /r $string =~ s/search/rep/; will apply its modifications directly on $string. The /r modifier is used to keep the original string intact and output the result to another one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with perl 5
by praveenchappa (Acolyte) on Mar 09, 2015 at 08:55 UTC | |
|
Re^2: problem with perl 5
by praveenchappa (Acolyte) on Mar 09, 2015 at 08:52 UTC | |
by Anonymous Monk on Mar 09, 2015 at 09:03 UTC | |
by Anonymous Monk on Mar 09, 2015 at 09:41 UTC | |
by Anonymous Monk on Mar 09, 2015 at 09:50 UTC |